Skip to content

Commit f529290

Browse files
committed
Merge bitcoin-core#439: Do not show unused widgets at startup
489060d qt: Do not show unused widgets at startup (Hennadii Stepanov) Pull request description: On master (8d83f9c), when starting without wallets the `labelWalletEncryptionIcon` and `labelWalletHDStatusIcon` widgets are not used but still visible as empty space: ![Screenshot from 2021-09-29 21-59-22](https://user-images.githubusercontent.com/32963518/135332107-f02db936-3c3a-436b-9e78-c5721df8852b.png) If one opens any wallet then closes it, the widget layout becomes densed: ![Screenshot from 2021-09-29 22-05-31](https://user-images.githubusercontent.com/32963518/135332650-83787bc4-fa8e-417e-8d53-a9fdb1c8bfc9.png) This PR makes widget layout densed at startup. Fixes bitcoin-core#428. ACKs for top commit: jarolrod: ACK 489060d promag: Code review ACK 489060d. Tree-SHA512: bda7195225ecd203bb3269ebe7fc264aaf7f57b922deb83a04127584a5d6123950741fb431161523e84630927c2f617e85c085bbbe75ad8559da7b2947de1bdd
2 parents 69a66dc + 489060d commit f529290

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/bitcoingui.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
171171
frameBlocksLayout->addWidget(unitDisplayControl);
172172
frameBlocksLayout->addStretch();
173173
frameBlocksLayout->addWidget(labelWalletEncryptionIcon);
174+
labelWalletEncryptionIcon->hide();
174175
frameBlocksLayout->addWidget(labelWalletHDStatusIcon);
176+
labelWalletHDStatusIcon->hide();
175177
}
176178
frameBlocksLayout->addWidget(labelProxyIcon);
177179
frameBlocksLayout->addStretch();

0 commit comments

Comments
 (0)