mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
fixed toggle notifications from tray in linux, v 0.9.4.dev
This commit is contained in:
parent
ed707c8f0e
commit
156ae31254
1 changed files with 5 additions and 6 deletions
|
@ -1029,13 +1029,12 @@ void Window::updateTrayMenu(bool force) {
|
|||
if (!trayIconMenu || (cPlatform() == dbipWindows && !force)) return;
|
||||
|
||||
bool active = isActive(false);
|
||||
if (cPlatform() == dbipWindows || cPlatform() == dbipMac) {
|
||||
QString notificationItem = lang(cDesktopNotify()
|
||||
? lng_disable_notifications_from_tray : lng_enable_notifications_from_tray);
|
||||
|
||||
QAction *first = trayIconMenu->actions().at(0);
|
||||
first->setText(notificationItem);
|
||||
|
||||
if (cPlatform() == dbipWindows || cPlatform() == dbipMac) {
|
||||
QAction *second = trayIconMenu->actions().at(1);
|
||||
second->setText(lang(active ? lng_minimize_to_tray : lng_open_from_tray));
|
||||
disconnect(second, SIGNAL(triggered(bool)), 0, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue