Reactivate command line switch -m for start minimized.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3848 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-21 22:18:56 +00:00
parent d673d42ba9
commit 42fb103738

View File

@ -103,13 +103,6 @@ int main(int argc, char *argv[])
in this case it can be use only for default values */ in this case it can be use only for default values */
RshareSettings::Create (); RshareSettings::Create ();
/*
Function RsConfigMinimised is not available in SVN, so I commented it out.
bool startMinimised = RsConfigStartMinimised(config);
*/
//bool startMinimized = false;
/* Setup The GUI Stuff */ /* Setup The GUI Stuff */
Rshare rshare(args, argc, argv, Rshare rshare(args, argc, argv,
QString::fromStdString(RsInit::RsConfigDirectory())); QString::fromStdString(RsInit::RsConfigDirectory()));
@ -269,11 +262,11 @@ int main(int argc, char *argv[])
w->installGroupChatNotifier(); w->installGroupChatNotifier();
/* only show window, if not startMinimized */ /* only show window, if not startMinimized */
if(!Settings->value(QString::fromUtf8("StartMinimized"), false).toBool()) if (RsInit::setStartMinimised() || Settings->value("StartMinimized", false).toBool())
{ {
w->show();
} else {
splashScreen.close(); splashScreen.close();
} else {
w->show();
} }
/* Startup a Timer to keep the gui's updated */ /* Startup a Timer to keep the gui's updated */