qt: Change splash screen to normal window
Makes it possible to move, minimize, unminimize the window while Bitcoin Core is initializing.
This commit is contained in:
@@ -338,8 +338,7 @@ void BitcoinApplication::createWindow(bool isaTestNet)
|
||||
|
||||
void BitcoinApplication::createSplashScreen(bool isaTestNet)
|
||||
{
|
||||
SplashScreen *splash = new SplashScreen(QPixmap(), 0, isaTestNet);
|
||||
splash->setAttribute(Qt::WA_DeleteOnClose);
|
||||
SplashScreen *splash = new SplashScreen(0, isaTestNet);
|
||||
splash->show();
|
||||
connect(this, SIGNAL(splashFinished(QWidget*)), splash, SLOT(slotFinish(QWidget*)));
|
||||
}
|
||||
@@ -423,8 +422,6 @@ void BitcoinApplication::initializeResult(int retval)
|
||||
}
|
||||
#endif
|
||||
|
||||
emit splashFinished(window);
|
||||
|
||||
// If -min option passed, start window minimized.
|
||||
if(GetBoolArg("-min", false))
|
||||
{
|
||||
@@ -434,6 +431,8 @@ void BitcoinApplication::initializeResult(int retval)
|
||||
{
|
||||
window->show();
|
||||
}
|
||||
emit splashFinished(window);
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
// Now that initialization/startup is done, process any command-line
|
||||
// bitcoin: URIs or payment requests:
|
||||
|
||||
Reference in New Issue
Block a user