Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | #endif // ENABLE_WALLET | ||||
// Subscribe to notifications from core | // Subscribe to notifications from core | ||||
subscribeToCoreSignals(); | subscribeToCoreSignals(); | ||||
connect(connectionsControl, &GUIUtil::ClickableLabel::clicked, | connect(connectionsControl, &GUIUtil::ClickableLabel::clicked, | ||||
[this] { m_node.setNetworkActive(!m_node.getNetworkActive()); }); | [this] { m_node.setNetworkActive(!m_node.getNetworkActive()); }); | ||||
connect(labelProxyIcon, &GUIUtil::ClickableLabel::clicked, | connect(labelProxyIcon, &GUIUtil::ClickableLabel::clicked, | ||||
[this] { openOptionsDialogWithTab(OptionsDialog::TAB_NETWORK); }); | [this] { openOptionsDialogWithTab(OptionsDialog::TAB_NETWORK); }); | ||||
modalOverlay = new ModalOverlay(this->centralWidget()); | modalOverlay = new ModalOverlay(enableWallet, this->centralWidget()); | ||||
#ifdef ENABLE_WALLET | |||||
if (enableWallet) { | |||||
connect(walletFrame, &WalletFrame::requestedSyncWarningInfo, this, | |||||
&BitcoinGUI::showModalOverlay); | |||||
connect(labelBlocksIcon, &GUIUtil::ClickableLabel::clicked, this, | connect(labelBlocksIcon, &GUIUtil::ClickableLabel::clicked, this, | ||||
&BitcoinGUI::showModalOverlay); | &BitcoinGUI::showModalOverlay); | ||||
connect(progressBar, &GUIUtil::ClickableProgressBar::clicked, this, | connect(progressBar, &GUIUtil::ClickableProgressBar::clicked, this, | ||||
&BitcoinGUI::showModalOverlay); | &BitcoinGUI::showModalOverlay); | ||||
#ifdef ENABLE_WALLET | |||||
if (enableWallet) { | |||||
connect(walletFrame, &WalletFrame::requestedSyncWarningInfo, this, | |||||
&BitcoinGUI::showModalOverlay); | |||||
} | } | ||||
#endif | #endif | ||||
} | } | ||||
BitcoinGUI::~BitcoinGUI() { | BitcoinGUI::~BitcoinGUI() { | ||||
// Unsubscribe from notifications from core | // Unsubscribe from notifications from core | ||||
unsubscribeFromCoreSignals(); | unsubscribeFromCoreSignals(); | ||||
▲ Show 20 Lines • Show All 1,423 Lines • Show Last 20 Lines |