mirror of
				https://github.com/YACReader/yacreader
				synced 2025-11-04 01:05:06 -05:00 
			
		
		
		
	Restore the code to start the app into the system tray
This commit is contained in:
		@ -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();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user