1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

add command line option to hide main window on startup

This commit is contained in:
Kilian Lackhove 2011-11-12 17:17:45 +01:00 committed by Leo Franchi
parent 85c7cb4186
commit 8c175b88c5

View File

@ -220,7 +220,10 @@ TomahawkApp::init()
m_mainwindow = new TomahawkWindow();
m_mainwindow->setWindowTitle( "Tomahawk" );
m_mainwindow->setObjectName( "TH_Main_Window" );
m_mainwindow->show();
if ( !arguments().contains( "--hide" ) )
{
m_mainwindow->show();
}
}
#endif
@ -325,6 +328,7 @@ TomahawkApp::printHelp()
echo( " --help Show this help\n" );
echo( " --http Initialize HTTP server\n" );
echo( " --filescan Scan for files on startup\n" );
echo( " --hide Hide main window on startup\n" );
echo( " --testdb Use a test database instead of real collection\n" );
echo( " --noupnp Disable UPNP\n" );
echo( " --nosip Disable SIP\n" );