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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user