Continuation of #13848.
When running with -disablewallet
the sync modal is now available by clicking on the progress bar or syncing
icon.
Current Image of what the window looks like
Fixes #13828.
Continuation of #13848.
When running with -disablewallet
the sync modal is now available by clicking on the progress bar or syncing
icon.
Current Image of what the window looks like
Fixes #13828.
Note: not very fond of the overlay.
With the wallet disabled I think the information tab is good enough to not have the overlay. Maybe the information tab could have the same progress bar?
Also, it’s a pity to add wallet dependency to the overlay code, maybe add a flag to the constructor?
40+ enableWallet = WalletModel::isWalletEnabled();
41+#endif
42+ if (!enableWallet)
43+ {
44+ ui->infoText->setVisible(false);
45+ ui->infoTextStrong->setText("Bitcoin Core is not fully synced yet.");
11@@ -12,7 +12,7 @@
12 #include <QResizeEvent>
13 #include <QPropertyAnimation>
14
15-ModalOverlay::ModalOverlay(QWidget *parent) :
16+ModalOverlay::ModalOverlay(QWidget *parent, bool enableWallet) :
*parent
is usually the last argument. Also use enable_wallet
instead.
28@@ -29,6 +29,11 @@ userClosed(false)
29
30 blockProcessTime.clear();
31 setVisible(false);
32+ if (!enableWallet)
{
here.
28@@ -29,6 +29,10 @@ userClosed(false)
29
30 blockProcessTime.clear();
31 setVisible(false);
32+ if (!enable_wallet) {
33+ ui->infoText->setVisible(false);
34+ ui->infoTextStrong->setText("Bitcoin Core is currently syncing. It will download headers and blocks from peers and validate them until reaching the tip of the best block chain.");
With the wallet disabled I think the information tab is good enough to not have the overlay. Maybe the information tab could have the same progress bar?
Yes, but I think it should wait for another PR. I doubt many people use QT compiled without wallet. This PR fixes a bug with that, so let’s just merge that.
re-tACK 815c729
With the wallet disabled I think the information tab is good enough to not have the overlay. Maybe the information tab could have the same progress bar?
Tend to agree here. The overlay is good for wallet users, but I don’t think it’s really necessary without wallet with the information tab as first display. It has more or less the same information.
it is probably nice when one directly see what’s going on during the sync rather then requiring to open the “debug window”.
I see the point that the overlay (as it is) was designed for wallet users (it overlays and warns). But showing relevant information on first sight for non-wallet users seems to be a nice addition.
28@@ -29,6 +29,10 @@ userClosed(false)
29
30 blockProcessTime.clear();
31 setVisible(false);
32+ if (!enable_wallet) {
33+ ui->infoText->setVisible(false);
34+ ui->infoTextStrong->setText("Bitcoin Core is currently syncing. It will download headers and blocks from peers and validate them until reaching the tip of the block chain.");
tr()
Tested a bit and I think it makes sense to add this. It won’t show automatically at the start if wallets are disabled.
Does the exclamation mark warning icon need to be changed in node mode though?
Does the exclamation mark warning icon need to be changed in node mode though?
I think it makes sense to keep it, it’ll bring attention to the fact that the screen means the node is not fully synced.