mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 05:38:06 -06:00
Notify users on 1st time close/minimize to tray
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -286,10 +286,14 @@ public:
|
||||
#ifndef Q_OS_MAC
|
||||
bool systrayIntegration() const;
|
||||
void setSystrayIntegration(bool enabled);
|
||||
bool minimizeToTrayNotified() const;
|
||||
void setMinimizeToTrayNotified(bool b);
|
||||
bool minimizeToTray() const;
|
||||
void setMinimizeToTray(bool b);
|
||||
bool closeToTray() const;
|
||||
void setCloseToTray(bool b);
|
||||
bool closeToTrayNotified() const;
|
||||
void setCloseToTrayNotified(bool b);
|
||||
TrayIcon::Style trayIconStyle() const;
|
||||
void setTrayIconStyle(TrayIcon::Style style);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user