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:
committed by
Kirill Gerasimenko
parent
001864baab
commit
8fc9aa6fdb
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user