Merge bitcoin-core/gui#439: Do not show unused widgets at startup
489060dcafqt: Do not show unused widgets at startup (Hennadii Stepanov) Pull request description: On master (8d83f9c1d1), when starting without wallets the `labelWalletEncryptionIcon` and `labelWalletHDStatusIcon` widgets are not used but still visible as empty space:  If one opens any wallet then closes it, the widget layout becomes densed:  This PR makes widget layout densed at startup. Fixes #428. ACKs for top commit: jarolrod: ACK489060dcafpromag: Code review ACK489060dcaf. Tree-SHA512: bda7195225ecd203bb3269ebe7fc264aaf7f57b922deb83a04127584a5d6123950741fb431161523e84630927c2f617e85c085bbbe75ad8559da7b2947de1bdd
This commit is contained in:
1 file changed
+2
@@ -171,7 +171,9 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
|
|||||||
frameBlocksLayout->addWidget(unitDisplayControl);
|
frameBlocksLayout->addWidget(unitDisplayControl);
|
||||||
frameBlocksLayout->addStretch();
|
frameBlocksLayout->addStretch();
|
||||||
frameBlocksLayout->addWidget(labelWalletEncryptionIcon);
|
frameBlocksLayout->addWidget(labelWalletEncryptionIcon);
|
||||||
|
labelWalletEncryptionIcon->hide();
|
||||||
frameBlocksLayout->addWidget(labelWalletHDStatusIcon);
|
frameBlocksLayout->addWidget(labelWalletHDStatusIcon);
|
||||||
|
labelWalletHDStatusIcon->hide();
|
||||||
}
|
}
|
||||||
frameBlocksLayout->addWidget(labelProxyIcon);
|
frameBlocksLayout->addWidget(labelProxyIcon);
|
||||||
frameBlocksLayout->addStretch();
|
frameBlocksLayout->addStretch();
|
||||||
|
|||||||
Reference in new issue
Block a user