mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
The showSystemTrayIcon's default value is false for linux else it is false.
This commit is contained in:
parent
565f50e124
commit
0660d2974f
|
@ -29,6 +29,13 @@
|
|||
#include <QList>
|
||||
#include <QStyleFactory>
|
||||
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
#define SHOW_SYSTEM_TRAY_DEFAULT (bool) false
|
||||
#else // OS is not linux
|
||||
#define SHOW_SYSTEM_TRAY_DEFAULT (bool) true
|
||||
#endif
|
||||
|
||||
const QString Settings::FILENAME = "settings.ini";
|
||||
bool Settings::makeToxPortable{false};
|
||||
|
||||
|
@ -114,7 +121,7 @@ void Settings::load()
|
|||
s.beginGroup("General");
|
||||
enableIPv6 = s.value("enableIPv6", true).toBool();
|
||||
translation = s.value("translation", "en").toString();
|
||||
showSystemTray = s.value("showSystemTray", false).toBool();
|
||||
showSystemTray = s.value("showSystemTray", SHOW_SYSTEM_TRAY_DEFAULT).toBool();
|
||||
makeToxPortable = s.value("makeToxPortable", false).toBool();
|
||||
autostartInTray = s.value("autostartInTray", false).toBool();
|
||||
closeToTray = s.value("closeToTray", false).toBool();
|
||||
|
|
Loading…
Reference in New Issue
Block a user