Skip to content

Commit

Permalink
Merge pull request bitcoin#679 from laanwj/cmdline_minimize
Browse files Browse the repository at this point in the history
Implement -min option to start minimized
  • Loading branch information
gavinandresen committed Dec 5, 2011
2 parents f66eabd + 7915370 commit 8848a70
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ int main(int argc, char *argv[])
{
{
// Put this in a block, so that BitcoinGUI is cleaned up properly before
// calling Shutdown().
// calling Shutdown() in case of exceptions.
BitcoinGUI window;
splash.finish(&window);
OptionsModel optionsModel(pwalletMain);
Expand All @@ -170,7 +170,15 @@ int main(int argc, char *argv[])
window.setClientModel(&clientModel);
window.setWalletModel(&walletModel);

window.show();
// If -min option passed, start window minimized.
if(GetBoolArg("-min"))
{
window.showMinimized();
}
else
{
window.show();
}

app.exec();

Expand Down

0 comments on commit 8848a70

Please sign in to comment.