Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control changes from clickable to unclickable upon canceling. #392

Closed
katesalazar opened this issue Aug 2, 2021 · 10 comments · Fixed by #393
Closed

Control changes from clickable to unclickable upon canceling. #392

katesalazar opened this issue Aug 2, 2021 · 10 comments · Fixed by #393
Labels
Bug Something isn't working UX All about "how to get things done" Wallet
Milestone

Comments

@katesalazar
Copy link
Contributor

katesalazar commented Aug 2, 2021

Load a wallet, "Settings" > "Encrypt Wallet..." can be clicked. Click it, modal opens, cancel modal, now "Settings" > "Encrypt Wallet..." cannot be clicked ("disabled grey").

Expected behavior

The control being disabled from the beginning.

Actual behavior

Control started clickable and idempotence not happening until after having clicked the control.

To reproduce

Open Bitcoin GUI, load the wallet (if not loaded). Close Bitcoin GUI. Open it again so that it loads the wallet automatically. Reproduce. After closing the wallet, the issue doesn't happen anymore by reloading the wallet, until closing Bitcoin GUI and launching it again.

System information

This is v22.0rc1 built from sources, but I can check master and previous tags as necessary. I'd say the 0.21.1 tag is free from this behavior.

This is Debian Buster (10) right on top of the amd64 metal.

Qt reports 5.11.3, Plasma is 5.14.5 (I think).

I'd be bisecting this soon.

@katesalazar katesalazar added the Bug Something isn't working label Aug 2, 2021
@hebasto hebasto added this to the 22.0 milestone Aug 3, 2021
@hebasto
Copy link
Member

hebasto commented Aug 3, 2021

@katesalazar

Thank you for your report!

Load a wallet, "Settings" > "Encrypt Wallet..." can be clicked. Click it, modal opens, cancel modal, now "Settings" > "Encrypt Wallet..." cannot be clicked ("disabled grey").

Tested 22.0rc1, 22.0rc2 and master on Linux Mint 20.2 (Qt 5.12.8) -- cannot reproduce the bug you described.
Wallet details: the only wallet is loaded automatically during the GUI startup.

Will test on other systems.

UPDATE: #392 (comment)

@katesalazar
Copy link
Contributor Author

I finally ended running git bisect, reaching 20e2e24e90. 🤔

@katesalazar
Copy link
Contributor Author

I had been using a production wallet for this.

I just created and encrypted an empty wallet, and the same thing is happening
to it. When trying to force the way to encrypt the encrypted empty wallet
it's showing this modal:

"Wallet encryption failed"
"Wallet encryption failed due to an internal error. Your wallet was not
encrypted."
"[ OK ]"

@hebasto
Copy link
Member

hebasto commented Aug 3, 2021

I misread the issue description.

I can confirm this bug with encrypted wallet.

@hebasto
Copy link
Member

hebasto commented Aug 3, 2021

@katesalazar

Fixed in #393. Do you mind testing it?

@katesalazar
Copy link
Contributor Author

I think bringing back line

connect(walletView, &WalletView::encryptionStatusChanged, gui, &BitcoinGUI::updateWalletStatus);

of bitcoin/bitcoin@20e2e24e90 removes the issue. But I don't understand the implications and how that fits with the rest of that refactoring.

@hebasto hebasto added the UX All about "how to get things done" label Aug 3, 2021
@hebasto
Copy link
Member

hebasto commented Aug 3, 2021

@katesalazar

I think bringing back line

connect(walletView, &WalletView::encryptionStatusChanged, gui, &BitcoinGUI::updateWalletStatus);

of bitcoin/bitcoin@20e2e24 removes the issue. But I don't understand the implications and how that fits with the rest of that refactoring.

You are right. In #393 I just try to keep all connect calls grouped.

@katesalazar
Copy link
Contributor Author

@katesalazar

Fixed in #393. Do you mind testing it?

I tested it and the bug was gone.

Then just to be sure I reverted it and the bug was back as expected.

@hebasto
Copy link
Member

hebasto commented Aug 3, 2021

@katesalazar

I tested it and the bug was gone.

Then just to be sure I reverted it and the bug was back as expected.

Thanks for testing!

Could you leave a comment in #393?

@hebasto hebasto added the Wallet label Aug 4, 2021
@jarolrod
Copy link
Member

jarolrod commented Aug 5, 2021

Confirming this bug on master

@hebasto hebasto closed this as completed in e9472e6 Aug 5, 2021
@bitcoin-core bitcoin-core locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working UX All about "how to get things done" Wallet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants