mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 04:12:36 -03:00
gui: don't disable the sync overlay when wallet is disabled
This commit is contained in:
parent
1d73636fdf
commit
b3b6b6f62f
3 changed files with 9 additions and 5 deletions
|
@ -201,12 +201,12 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
|
||||||
openOptionsDialogWithTab(OptionsDialog::TAB_NETWORK);
|
openOptionsDialogWithTab(OptionsDialog::TAB_NETWORK);
|
||||||
});
|
});
|
||||||
|
|
||||||
modalOverlay = new ModalOverlay(this->centralWidget());
|
modalOverlay = new ModalOverlay(enableWallet, this->centralWidget());
|
||||||
|
connect(labelBlocksIcon, &GUIUtil::ClickableLabel::clicked, this, &BitcoinGUI::showModalOverlay);
|
||||||
|
connect(progressBar, &GUIUtil::ClickableProgressBar::clicked, this, &BitcoinGUI::showModalOverlay);
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
if(enableWallet) {
|
if(enableWallet) {
|
||||||
connect(walletFrame, &WalletFrame::requestedSyncWarningInfo, this, &BitcoinGUI::showModalOverlay);
|
connect(walletFrame, &WalletFrame::requestedSyncWarningInfo, this, &BitcoinGUI::showModalOverlay);
|
||||||
connect(labelBlocksIcon, &GUIUtil::ClickableLabel::clicked, this, &BitcoinGUI::showModalOverlay);
|
|
||||||
connect(progressBar, &GUIUtil::ClickableProgressBar::clicked, this, &BitcoinGUI::showModalOverlay);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <QResizeEvent>
|
#include <QResizeEvent>
|
||||||
#include <QPropertyAnimation>
|
#include <QPropertyAnimation>
|
||||||
|
|
||||||
ModalOverlay::ModalOverlay(QWidget *parent) :
|
ModalOverlay::ModalOverlay(bool enable_wallet, QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
ui(new Ui::ModalOverlay),
|
ui(new Ui::ModalOverlay),
|
||||||
bestHeaderHeight(0),
|
bestHeaderHeight(0),
|
||||||
|
@ -29,6 +29,10 @@ userClosed(false)
|
||||||
|
|
||||||
blockProcessTime.clear();
|
blockProcessTime.clear();
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
|
if (!enable_wallet) {
|
||||||
|
ui->infoText->setVisible(false);
|
||||||
|
ui->infoTextStrong->setText(tr("Bitcoin Core is currently syncing. It will download headers and blocks from peers and validate them until reaching the tip of the block chain."));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ModalOverlay::~ModalOverlay()
|
ModalOverlay::~ModalOverlay()
|
||||||
|
|
|
@ -21,7 +21,7 @@ class ModalOverlay : public QWidget
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ModalOverlay(QWidget *parent);
|
explicit ModalOverlay(bool enable_wallet, QWidget *parent);
|
||||||
~ModalOverlay();
|
~ModalOverlay();
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
|
Loading…
Reference in a new issue