mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Simplify tray icon related code
This commit is contained in:
parent
b8a84dbd83
commit
85777ea491
8 changed files with 125 additions and 140 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue