This PR includes 2 fixes:
-
prevent GUI LoadWallet handlers from crashing on startup when multiple handlers are attached, because the first handler takes ownership of the wallet unique pointer. Now every handler will receive its own unique pointer;
-
prevent showing a wallet twice in the GUI on startup due to a race with
loadwallet
.
Fixes #16937