1
0
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:
Maximilian 2014-11-17 16:35:30 +01:00 committed by Tux3 / Mlkj / !Lev.uXFMLA
parent 565f50e124
commit 0660d2974f

View File

@ -29,6 +29,13 @@
#include <QList> #include <QList>
#include <QStyleFactory> #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"; const QString Settings::FILENAME = "settings.ini";
bool Settings::makeToxPortable{false}; bool Settings::makeToxPortable{false};
@ -114,7 +121,7 @@ void Settings::load()
s.beginGroup("General"); s.beginGroup("General");
enableIPv6 = s.value("enableIPv6", true).toBool(); enableIPv6 = s.value("enableIPv6", true).toBool();
translation = s.value("translation", "en").toString(); 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(); makeToxPortable = s.value("makeToxPortable", false).toBool();
autostartInTray = s.value("autostartInTray", false).toBool(); autostartInTray = s.value("autostartInTray", false).toBool();
closeToTray = s.value("closeToTray", false).toBool(); closeToTray = s.value("closeToTray", false).toBool();