2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

use QSystemTrayIcon on not-Unity, Semibold Open Sans fixed by Qt patch

This commit is contained in:
John Preston
2015-02-16 17:51:50 +03:00
parent 394170bd4c
commit 871231c5cf
7 changed files with 78 additions and 75 deletions

View File

@@ -889,15 +889,15 @@ void Window::updateTrayMenu(bool force) {
first->setText(lang(active ? lng_minimize_to_tray : lng_open_from_tray));
disconnect(first, SIGNAL(triggered(bool)), 0, 0);
connect(first, SIGNAL(triggered(bool)), this, active ? SLOT(minimizeToTray()) : SLOT(showFromTray()));
#ifndef Q_OS_WIN
if (trayIcon) {
trayIcon->setContextMenu((active || cPlatform() != dbipMac) ? trayIconMenu : 0);
}
#endif
} else {
QAction *second = trayIconMenu->actions().at(1);
second->setDisabled(!isVisible());
}
#ifndef Q_OS_WIN
if (trayIcon) {
trayIcon->setContextMenu((active || cPlatform() != dbipMac) ? trayIconMenu : 0);
}
#endif
psTrayMenuUpdated();
}