Browse Source

qt: Move SplashFinished to after ClientModel/WalletModel creation

With a large wallet there was a noticable gap between hiding of the
splash and showing the main window.
0.10
Wladimir J. van der Laan 10 years ago
parent
commit
0de61e7585
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/qt/bitcoin.cpp

4
src/qt/bitcoin.cpp

@ -406,8 +406,6 @@ void BitcoinApplication::initializeResult(int retval) @@ -406,8 +406,6 @@ void BitcoinApplication::initializeResult(int retval)
paymentServer->setOptionsModel(optionsModel);
#endif
emit splashFinished(window);
clientModel = new ClientModel(optionsModel);
window->setClientModel(clientModel);
@ -424,6 +422,8 @@ void BitcoinApplication::initializeResult(int retval) @@ -424,6 +422,8 @@ void BitcoinApplication::initializeResult(int retval)
}
#endif
emit splashFinished(window);
// If -min option passed, start window minimized.
if(GetBoolArg("-min", false))
{

Loading…
Cancel
Save