2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Add item to system tray to toggle notifications display

Signed-off-by: Kirill Gerasimenko <kirill.gerasimenko@outlook.com> (github: kirill-gerasimenko)
This commit is contained in:
Signed-off-by: Kirill Gerasimenko
2015-02-04 08:14:20 +02:00
committed by Kirill Gerasimenko
parent 001864baab
commit 8fc9aa6fdb
5 changed files with 40 additions and 5 deletions

View File

@@ -857,6 +857,7 @@ void SettingsInner::updateSize(int32 newWidth) {
}
}
void SettingsInner::updateOnlineDisplay() {
}
@@ -1479,6 +1480,11 @@ void SettingsInner::onDesktopNotify() {
}
}
void SettingsInner::enableDisplayNotify(bool enable)
{
_desktopNotify.setChecked(enable);
}
void SettingsInner::onSenderName() {
_messagePreview.setDisabled(!_senderName.checked());
if (!_senderName.checked() && _messagePreview.checked()) {
@@ -1863,6 +1869,11 @@ void SettingsWidget::updateWideMode() {
}
}
void SettingsWidget::updateDisplayNotify()
{
_inner.enableDisplayNotify(cDesktopNotify());
}
void SettingsWidget::updateOnlineDisplay() {
_inner.updateOnlineDisplay();
}