Cw 1339 fix desktop wallet dropdown (#2714)
What changed, and why it matters
This is a small user-interface fix for the desktop version of Cake Wallet. After switching wallets, the dropdown list of wallets is now refreshed so the displayed name stays correct. There is no indication this change addresses a security problem.
No security action needed; treat as a normal UI bug fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A single line calls updateList() after _appStore.changeCurrentWallet(wallet) in WalletListViewModelBase. This ensures the wallet list UI reflects the newly selected wallet. The change is purely presentational/state-refresh logic in a Flutter/Dart view model.
Changed components
lib/view_model/wallet_list/wallet_list_view_model.dartInspect captured patch +1 / −0
diff --git a/lib/view_model/wallet_list/wallet_list_view_model.dart b/lib/view_model/wallet_list/wallet_list_view_model.dart
index 46d6d38c..3e1ffb73 100644
--- a/lib/view_model/wallet_list/wallet_list_view_model.dart
+++ b/lib/view_model/wallet_list/wallet_list_view_model.dart
@@ -78,6 +78,7 @@ abstract class WalletListViewModelBase with Store {
// await _appStore.wallet?.close(shouldCleanup: !switchingToSameWalletType);
final wallet = await _walletLoadingService.load(walletItem.type, walletItem.name);
await _appStore.changeCurrentWallet(wallet);
+ updateList();
}
FilterListOrderType? get orderType => _appStore.settingsStore.walletListOrder;
Why this scored 18/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.