mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Added setting to enable/disable notifications
When something happens, the taskbar icon lights up/the dock icon bounces. This can be annoying, so here is a setting to disable that.
This commit is contained in:
parent
f699cd4b0f
commit
b1af4237e7
5 changed files with 21 additions and 3 deletions
|
|
@ -21,6 +21,7 @@ SettingsCache::SettingsCache()
|
|||
|
||||
mainWindowGeometry = settings->value("interface/main_window_geometry").toByteArray();
|
||||
picDownload = settings->value("personal/picturedownload", true).toBool();
|
||||
notificationsEnabled = settings->value("interface/notificationsenabled", true).toBool();
|
||||
doubleClickToPlay = settings->value("interface/doubleclicktoplay", true).toBool();
|
||||
playToStack = settings->value("interface/playtostack", false).toBool();
|
||||
cardInfoMinimized = settings->value("interface/cardinfominimized", 0).toInt();
|
||||
|
|
@ -124,6 +125,12 @@ void SettingsCache::setPicDownload(int _picDownload)
|
|||
emit picDownloadChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setNotificationsEnabled(int _notificationsEnabled)
|
||||
{
|
||||
notificationsEnabled = _notificationsEnabled;
|
||||
settings->setValue("interface/notificationsenabled", notificationsEnabled);
|
||||
}
|
||||
|
||||
void SettingsCache::setDoubleClickToPlay(int _doubleClickToPlay)
|
||||
{
|
||||
doubleClickToPlay = _doubleClickToPlay;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue