2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

Show sessions list in a Settings Section.

This commit is contained in:
John Preston
2021-11-29 17:29:45 +04:00
parent 2ad20d6c4a
commit d4c6475ae8
7 changed files with 26 additions and 9 deletions

View File

@@ -129,7 +129,7 @@ void SessionInfoBox(
[[nodiscard]] QString LocationAndDate(const EntryData &entry) {
return (entry.location.isEmpty() ? entry.ip : entry.location)
+ (entry.hash
? (QString::fromUtf8(" \xe2\x80\x93 ") + entry.active)
? (QString::fromUtf8(" \xE2\x80\xA2 ") + entry.active)
: QString());
}
@@ -768,6 +768,7 @@ Sessions::Sessions(
void Sessions::setupContent(not_null<Window::SessionController*> controller) {
const auto container = Ui::CreateChild<Ui::VerticalLayout>(this);
AddSkip(container, st::settingsPrivacySkip);
const auto content = container->add(
object_ptr<SessionsContent>(container, controller));
content->setupContent();