Make quit/minimise-to-systray on close configurable.

BUG:103
This commit is contained in:
craig.p.drummond@gmail.com
2012-10-11 17:03:18 +00:00
committed by craig.p.drummond@gmail.com
parent bb967b9d47
commit 6e10970251
7 changed files with 45 additions and 8 deletions

View File

@@ -275,6 +275,11 @@ bool Settings::useSystemTray()
return GET_BOOL("useSystemTray", false);
}
bool Settings::minimiseOnClose()
{
return GET_BOOL("minimiseOnClose", true);
}
bool Settings::showPopups()
{
return GET_BOOL("showPopups", false);
@@ -651,6 +656,13 @@ void Settings::saveUseSystemTray(bool v)
}
}
void Settings::saveMinimiseOnClose(bool v)
{
if (v!=minimiseOnClose()) {
SET_VALUE_MOD("minimiseOnClose", v);
}
}
void Settings::saveShowPopups(bool v)
{
if (v!=showPopups()) {