mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -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
|
|
@ -12,6 +12,7 @@
|
|||
#include "tab_deck_editor.h"
|
||||
#include "pixmapgenerator.h"
|
||||
#include "userlist.h"
|
||||
#include "settingscache.h"
|
||||
#include <QDebug>
|
||||
#include <QPainter>
|
||||
|
||||
|
|
@ -417,7 +418,7 @@ void TabSupervisor::tabUserEvent(bool globalEvent)
|
|||
tab->setContentsChanged(true);
|
||||
setTabIcon(indexOf(tab), *tabChangedIcon);
|
||||
}
|
||||
if (globalEvent)
|
||||
if (globalEvent && settingsCache->getNotificationsEnabled())
|
||||
QApplication::alert(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue