mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
Simplify tray icon related code
This commit is contained in:
@@ -210,12 +210,12 @@ void Preferences::setHideZeroComboValues(const int n)
|
||||
// In Mac OS X the dock is sufficient for our needs so we disable the sys tray functionality.
|
||||
// See extensive discussion in https://github.com/qbittorrent/qBittorrent/pull/3018
|
||||
#ifndef Q_OS_MACOS
|
||||
bool Preferences::systrayIntegration() const
|
||||
bool Preferences::systemTrayEnabled() const
|
||||
{
|
||||
return value("Preferences/General/SystrayEnabled", true);
|
||||
}
|
||||
|
||||
void Preferences::setSystrayIntegration(const bool enabled)
|
||||
void Preferences::setSystemTrayEnabled(const bool enabled)
|
||||
{
|
||||
setValue("Preferences/General/SystrayEnabled", enabled);
|
||||
}
|
||||
|
||||
@@ -315,8 +315,8 @@ public:
|
||||
bool confirmRemoveAllTags() const;
|
||||
void setConfirmRemoveAllTags(bool enabled);
|
||||
#ifndef Q_OS_MACOS
|
||||
bool systrayIntegration() const;
|
||||
void setSystrayIntegration(bool enabled);
|
||||
bool systemTrayEnabled() const;
|
||||
void setSystemTrayEnabled(bool enabled);
|
||||
bool minimizeToTrayNotified() const;
|
||||
void setMinimizeToTrayNotified(bool b);
|
||||
bool minimizeToTray() const;
|
||||
|
||||
Reference in New Issue
Block a user