mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-21 23:48:34 +02:00
wallet + ui: select wallet after creation, wallet panels dual mode refactoring
This commit is contained in:
@@ -74,7 +74,10 @@ impl Wallets {
|
||||
)-> Result<(), Error> {
|
||||
let wallet = Wallet::create(name, password, mnemonic, external_node_url)?;
|
||||
let mut w_state = WALLETS_STATE.write().unwrap();
|
||||
w_state.list.push(wallet);
|
||||
let id = wallet.config.id;
|
||||
w_state.opened_ids.insert(id);
|
||||
w_state.selected_id = Some(id);
|
||||
w_state.list.insert(0, wallet);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user