Browse Source

Implement -min option to start minimized

0.8
Wladimir J. van der Laan 13 years ago
parent
commit
7915370cb9
  1. 10
      src/qt/bitcoin.cpp

10
src/qt/bitcoin.cpp

@ -159,7 +159,7 @@ int main(int argc, char *argv[])
{ {
{ {
// Put this in a block, so that BitcoinGUI is cleaned up properly before // Put this in a block, so that BitcoinGUI is cleaned up properly before
// calling Shutdown(). // calling Shutdown() in case of exceptions.
BitcoinGUI window; BitcoinGUI window;
splash.finish(&window); splash.finish(&window);
OptionsModel optionsModel(pwalletMain); OptionsModel optionsModel(pwalletMain);
@ -170,7 +170,15 @@ int main(int argc, char *argv[])
window.setClientModel(&clientModel); window.setClientModel(&clientModel);
window.setWalletModel(&walletModel); window.setWalletModel(&walletModel);
// If -min option passed, start window minimized.
if(GetBoolArg("-min"))
{
window.showMinimized();
}
else
{
window.show(); window.show();
}
app.exec(); app.exec();

Loading…
Cancel
Save