fixed tray notifications toggle, 0.9.4.dev version

This commit is contained in:
John Preston 2015-10-12 23:48:14 +02:00
parent 2e2455cf81
commit ed707c8f0e
3 changed files with 9 additions and 2 deletions

View file

@ -806,6 +806,7 @@ namespace {
if (!_checkStreamStatus(stream)) return false;
cSetDesktopNotify(v == 1);
if (App::wnd()) App::wnd()->updateTrayMenu();
} break;
case dbiWindowsNotifications: {

View file

@ -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)

View file

@ -1171,6 +1171,12 @@ void Window::toggleDisplayNotifyFromTray() {
cSetDesktopNotify(!cDesktopNotify());
if (settings) {
settings->updateDisplayNotify();
} else {
if (!cDesktopNotify()) {
notifyClear();
}
Local::writeUserSettings();
updateTrayMenu();
}
}