mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
fixed tray notifications toggle, 0.9.4.dev version
This commit is contained in:
parent
2e2455cf81
commit
ed707c8f0e
3 changed files with 9 additions and 2 deletions
|
@ -806,6 +806,7 @@ namespace {
|
|||
if (!_checkStreamStatus(stream)) return false;
|
||||
|
||||
cSetDesktopNotify(v == 1);
|
||||
if (App::wnd()) App::wnd()->updateTrayMenu();
|
||||
} break;
|
||||
|
||||
case dbiWindowsNotifications: {
|
||||
|
|
|
@ -1467,12 +1467,12 @@ void SettingsInner::onDesktopNotify() {
|
|||
App::wnd()->notifyClear();
|
||||
_senderName.setDisabled(true);
|
||||
_messagePreview.setDisabled(true);
|
||||
Local::writeUserSettings();
|
||||
} else {
|
||||
_senderName.setDisabled(false);
|
||||
_messagePreview.setDisabled(!_senderName.checked());
|
||||
Local::writeUserSettings();
|
||||
}
|
||||
Local::writeUserSettings();
|
||||
if (App::wnd()) App::wnd()->updateTrayMenu();
|
||||
}
|
||||
|
||||
void SettingsInner::enableDisplayNotify(bool enable)
|
||||
|
|
|
@ -1171,6 +1171,12 @@ void Window::toggleDisplayNotifyFromTray() {
|
|||
cSetDesktopNotify(!cDesktopNotify());
|
||||
if (settings) {
|
||||
settings->updateDisplayNotify();
|
||||
} else {
|
||||
if (!cDesktopNotify()) {
|
||||
notifyClear();
|
||||
}
|
||||
Local::writeUserSettings();
|
||||
updateTrayMenu();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue