Fix start with the -min option
When GUI starts with the `-min` option, the `Minimize to tray instead of the taskbar` option works as expected now.
This commit is contained in:
+6
-7
@@ -487,14 +487,13 @@ void BitcoinApplication::initializeResult(bool success)
|
||||
}
|
||||
#endif
|
||||
|
||||
// If -min option passed, start window minimized.
|
||||
if(gArgs.GetBoolArg("-min", false))
|
||||
{
|
||||
window->showMinimized();
|
||||
}
|
||||
else
|
||||
{
|
||||
// If -min option passed, start window minimized (iconified) or minimized to tray
|
||||
if (!gArgs.GetBoolArg("-min", false)) {
|
||||
window->show();
|
||||
} else if (clientModel->getOptionsModel()->getMinimizeToTray() && window->hasTrayIcon()) {
|
||||
// do nothing as the window is managed by the tray icon
|
||||
} else {
|
||||
window->showMinimized();
|
||||
}
|
||||
Q_EMIT splashFinished(window);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user