mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Restore the code to start the app into the system tray
This commit is contained in:
parent
3923da2344
commit
b5f3799753
@ -245,7 +245,15 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
//connections to localServer
|
//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();
|
int ret = app.exec();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user