<!-- Describe the issue -->
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
<!--- What behavior did you expect? -->
The control being disabled from the beginning.
Actual behavior
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
Control started clickable and idempotence not happening until after having clicked the control.
To reproduce
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
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
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
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.
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
This is Debian Buster (10) right on top of the amd64 metal.
<!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->
Qt reports 5.11.3, Plasma is 5.14.5 (I think).
<!-- Any extra information that might be useful in the debugging process. -->
I'd be bisecting this soon.
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->