mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-26 17:52:13 +01:00
Merge bitcoin-core/gui#780: Fix: Ensure 'Transaction View' remains disabled if no wallet is selected
b2e531e70a88f5c9e1c055ae7341520a3128e15d qt: update widgets availability on wallet selection (pablomartin4btc)
Pull request description:
This PR addresses an issue where, with no wallet selected, ticking on "Settings -> Mask values" checkbox twice enables the transaction tab when the checkbox is unticked.
<details>
<summary>Current behavior display on master</summary>

</details>
<details>
<summary>Correction display from this branch</summary>

</details>
Note for maintaners: this PR should be backported to both 25.x and 26.x.
---
Originally this PR was disabling the "Mask Values" checkbox when no wallet was selected but since a reviewer pointed out that a user might want to open a wallet already on "privacy mode" I rolled that change out.
<details>
<summary>Original correction display disabling "Mask Values" </summary>

</details>
ACKs for top commit:
alfonsoromanz:
Tested ACK b2e531e70a
hebasto:
ACK b2e531e70a88f5c9e1c055ae7341520a3128e15d, tested on Ubuntu 22.04.
Tree-SHA512: 6be77ab4d5ec86267a9b0a289a4d8600bb67d279f7e0be65e47b608ec392fe705cf026e32f3c082d2f27449b697d1d9e6a1d110035900d7a804ba823c9f5dfd4
This commit is contained in:
commit
6868474555
@ -673,8 +673,10 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel, interfaces::BlockAndH
|
||||
#ifdef ENABLE_WALLET
|
||||
void BitcoinGUI::enableHistoryAction(bool privacy)
|
||||
{
|
||||
historyAction->setEnabled(!privacy);
|
||||
if (historyAction->isChecked()) gotoOverviewPage();
|
||||
if (walletFrame->currentWalletModel()) {
|
||||
historyAction->setEnabled(!privacy);
|
||||
if (historyAction->isChecked()) gotoOverviewPage();
|
||||
}
|
||||
}
|
||||
|
||||
void BitcoinGUI::setWalletController(WalletController* wallet_controller, bool show_loading_minimized)
|
||||
|
Loading…
x
Reference in New Issue
Block a user