Add an option to disable icons in menus

This commit is contained in:
Michał Kopeć
2021-02-19 16:11:52 +01:00
committed by sledgehammer999
parent 49cadce253
commit 2b18318e0c
5 changed files with 30 additions and 0 deletions

View File

@@ -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

View File

@@ -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