mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Add an option to disable icons in menus
This commit is contained in:
committed by
sledgehammer999
parent
49cadce253
commit
2b18318e0c
@@ -234,6 +234,16 @@ void Preferences::setCloseToTrayNotified(const bool b)
|
||||
{
|
||||
setValue("Preferences/General/CloseToTrayNotified", b);
|
||||
}
|
||||
|
||||
bool Preferences::iconsInMenusEnabled() const
|
||||
{
|
||||
return value("Preferences/Advanced/EnableIconsInMenus", true).toBool();
|
||||
}
|
||||
|
||||
void Preferences::setIconsInMenusEnabled(const bool enable)
|
||||
{
|
||||
setValue("Preferences/Advanced/EnableIconsInMenus", enable);
|
||||
}
|
||||
#endif // Q_OS_MACOS
|
||||
|
||||
bool Preferences::isToolbarDisplayed() const
|
||||
|
||||
@@ -313,6 +313,8 @@ public:
|
||||
void setCloseToTrayNotified(bool b);
|
||||
TrayIcon::Style trayIconStyle() const;
|
||||
void setTrayIconStyle(TrayIcon::Style style);
|
||||
bool iconsInMenusEnabled() const;
|
||||
void setIconsInMenusEnabled(bool enable);
|
||||
#endif // Q_OS_MACOS
|
||||
|
||||
// Stuff that don't appear in the Options GUI but are saved
|
||||
|
||||
Reference in New Issue
Block a user