Misleading message from RPCConsole window
In certain circumstances, the GUI console will display the message ‘Executing command without any wallet’ when it is, in fact, using the currently loaded wallet. For instance:
In RPC calls, if no wallet is explicitly selected and there is exactly one wallet loaded, the default is to act on that loaded wallet.
The GUI console acts that way in reality, but sometimes erroneously reports that it’s not acting on any particular wallet. The root issue is due to the logic that prevents changing the selected wallet if the RPCConsole is visible:
This PR removes that unnecessary logic. This does have some ramifications. Prior to this PR, if a user opened the console window without any wallets loaded, then opened two or more wallets, the RPC console would select “None” of the wallets and any wallet-specific RPCs would fail. However, the behavior was different if the user hadn’t had the console window open. In that case, if they opened the RPC Console window after loading at least the first wallet, it would select the first-loaded wallet. This context-dependent behavior is (IMO) undesirable, and this PR changes it to be consistent.