2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Implement three items tray menu on Linux

This commit is contained in:
Ilya Fedin
2021-02-23 04:55:14 +04:00
committed by John Preston
parent bb119ca967
commit 1a3253ae8b
8 changed files with 36 additions and 57 deletions

View File

@@ -137,17 +137,6 @@ Application::Application(not_null<Launcher*> launcher)
UpdateChecker().setMtproto(session);
}
}, _lifetime);
_domain->activeValue(
) | rpl::filter(rpl::mappers::_1 != nullptr
) | rpl::take(1) | rpl::start_with_next([=] {
if (_window) {
// Global::DesktopNotify is used in updateTrayMenu.
// This should be called when user settings are read.
// Right now after they are read the startMtp() is called.
_window->widget()->updateTrayMenu();
}
}, _lifetime);
}
Application::~Application() {