mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Notify users on 1st time close/minimize to tray
This commit is contained in:
parent
2befd2927a
commit
fd30bf7423
3 changed files with 40 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue