Restore the code to start the app into the system tray

This commit is contained in:
Luis Ángel San Martín 2019-09-21 10:44:03 +02:00
parent 3923da2344
commit b5f3799753

View File

@ -245,7 +245,15 @@ int main(int argc, char **argv)
//connections to localServer
mw->show();
// start as tray
if (!settings->value(START_TO_TRAY, false).toBool() || !settings->value(CLOSE_TO_TRAY, false).toBool()) {
mw->show();
}
#ifdef Q_OS_MACOS
else {
OSXHideDockIcon();
}
#endif
int ret = app.exec();