Fix tray menu
This commit is contained in:
parent
e80976a95e
commit
3d16814c1c
1 changed files with 2 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ void MainWindow::createTrayIconMenu() {
|
||||||
trayIconMenu->addAction(soundActionText, [=] {
|
trayIconMenu->addAction(soundActionText, [=] {
|
||||||
toggleSoundNotifyFromTray();
|
toggleSoundNotifyFromTray();
|
||||||
});
|
});
|
||||||
trayIconMenu->addAction(tr::lng_quit_from_tray(tr::now), [=] {
|
trayIconMenu->addAction(tr::ktg_quit_from_tray(tr::now), [=] {
|
||||||
quitFromTray();
|
quitFromTray();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -659,7 +659,7 @@ void MainWindow::updateTrayMenu() {
|
||||||
: tr::lng_enable_notifications_from_tray(tr::now);
|
: tr::lng_enable_notifications_from_tray(tr::now);
|
||||||
notificationAction->setText(notificationActionText);
|
notificationAction->setText(notificationActionText);
|
||||||
|
|
||||||
auto soundAction = actions.at(Platform::IsLinux() ? 3 : 2);
|
auto soundAction = actions.at(2);
|
||||||
auto soundActionText = Core::App().settings().soundNotify()
|
auto soundActionText = Core::App().settings().soundNotify()
|
||||||
? tr::ktg_settings_disable_sound_from_tray(tr::now)
|
? tr::ktg_settings_disable_sound_from_tray(tr::now)
|
||||||
: tr::ktg_settings_enable_sound_from_tray(tr::now);
|
: tr::ktg_settings_enable_sound_from_tray(tr::now);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue