mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
add command line option to hide main window on startup
This commit is contained in:
committed by
Leo Franchi
parent
85c7cb4186
commit
8c175b88c5
@@ -220,8 +220,11 @@ TomahawkApp::init()
|
|||||||
m_mainwindow = new TomahawkWindow();
|
m_mainwindow = new TomahawkWindow();
|
||||||
m_mainwindow->setWindowTitle( "Tomahawk" );
|
m_mainwindow->setWindowTitle( "Tomahawk" );
|
||||||
m_mainwindow->setObjectName( "TH_Main_Window" );
|
m_mainwindow->setObjectName( "TH_Main_Window" );
|
||||||
|
if ( !arguments().contains( "--hide" ) )
|
||||||
|
{
|
||||||
m_mainwindow->show();
|
m_mainwindow->show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tDebug() << "Init Local Collection.";
|
tDebug() << "Init Local Collection.";
|
||||||
@@ -325,6 +328,7 @@ TomahawkApp::printHelp()
|
|||||||
echo( " --help Show this help\n" );
|
echo( " --help Show this help\n" );
|
||||||
echo( " --http Initialize HTTP server\n" );
|
echo( " --http Initialize HTTP server\n" );
|
||||||
echo( " --filescan Scan for files on startup\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( " --testdb Use a test database instead of real collection\n" );
|
||||||
echo( " --noupnp Disable UPNP\n" );
|
echo( " --noupnp Disable UPNP\n" );
|
||||||
echo( " --nosip Disable SIP\n" );
|
echo( " --nosip Disable SIP\n" );
|
||||||
|
Reference in New Issue
Block a user