Notify users on 1st time close/minimize to tray

This commit is contained in:
sledgehammer999 2018-08-03 14:55:20 +03:00
parent 2befd2927a
commit fd30bf7423
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
3 changed files with 40 additions and 2 deletions

View file

@ -183,6 +183,16 @@ void Preferences::setMinimizeToTray(bool b)
setValue("Preferences/General/MinimizeToTray", b);
}
bool Preferences::minimizeToTrayNotified() const
{
return value("Preferences/General/MinimizeToTrayNotified", false).toBool();
}
void Preferences::setMinimizeToTrayNotified(bool b)
{
setValue("Preferences/General/MinimizeToTrayNotified", b);
}
bool Preferences::closeToTray() const
{
return value("Preferences/General/CloseToTray", true).toBool();
@ -192,6 +202,16 @@ void Preferences::setCloseToTray(bool b)
{
setValue("Preferences/General/CloseToTray", b);
}
bool Preferences::closeToTrayNotified() const
{
return value("Preferences/General/CloseToTrayNotified", false).toBool();
}
void Preferences::setCloseToTrayNotified(bool b)
{
setValue("Preferences/General/CloseToTrayNotified", b);
}
#endif
bool Preferences::isToolbarDisplayed() const