Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
clientModel = new ClientModel(m_node, optionsModel); | clientModel = new ClientModel(m_node, optionsModel); | ||||
window->setClientModel(clientModel); | window->setClientModel(clientModel); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
window->setWalletController(m_wallet_controller); | window->setWalletController(m_wallet_controller); | ||||
#endif | #endif | ||||
// If -min option passed, start window minimized. | // If -min option passed, start window minimized(iconified) | ||||
if (gArgs.GetBoolArg("-min", false)) { | // or minimized to tray | ||||
window->showMinimized(); | if (!gArgs.GetBoolArg("-min", false)) { | ||||
} else { | |||||
window->show(); | 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(); | Q_EMIT splashFinished(); | ||||
Q_EMIT windowShown(window); | Q_EMIT windowShown(window); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
// Now that initialization/startup is done, process any command-line | // Now that initialization/startup is done, process any command-line | ||||
// bitcoincash: URIs or payment requests: | // bitcoincash: URIs or payment requests: | ||||
if (paymentServer) { | if (paymentServer) { | ||||
▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines |