2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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

@@ -280,7 +280,6 @@ void MainWindow::handleActiveChanged() {
Core::App().checkMediaViewActivation();
}
base::call_delayed(1, this, [this] {
updateTrayMenu();
handleActiveChangedHook();
});
}
@@ -300,7 +299,6 @@ void MainWindow::handleVisibleChanged(bool visible) {
void MainWindow::showFromTray() {
base::call_delayed(1, this, [this] {
updateTrayMenu();
updateGlobalMenu();
});
activate();
@@ -556,7 +554,6 @@ void MainWindow::attachToTrayIcon(not_null<QSystemTrayIcon*> icon) {
handleTrayIconActication(reason);
});
});
App::wnd()->updateTrayMenu();
}
void MainWindow::paintEvent(QPaintEvent *e) {
@@ -694,7 +691,6 @@ bool MainWindow::minimizeToTray() {
closeWithoutDestroy();
controller().updateIsActiveBlur();
updateTrayMenu();
updateGlobalMenu();
showTrayTooltip();
return true;