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:
arxanas 2013-12-06 21:04:00 -05:00
parent f699cd4b0f
commit b1af4237e7
5 changed files with 21 additions and 3 deletions

View file

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