Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/ui/identities/add_new_identity_screen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,17 @@ impl AddNewIdentityScreen {
if ui.selectable_label(is_selected, wallet_alias).clicked() {
// Update the selected wallet
selected_wallet = Some(wallet.clone());
// Reset the funding address
self.funding_address = None;
// Reset the funding asset lock
self.funding_asset_lock = None;
// Reset the funding UTXO
self.funding_utxo = None;
// Reset the copied to clipboard state
self.copied_to_clipboard = None;
// Reset the step to choose funding method
let mut step = self.step.write().unwrap();
*step = WalletFundedScreenStep::ChooseFundingMethod;
}
}
});
Expand Down
11 changes: 11 additions & 0 deletions src/ui/identities/top_up_identity_screen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ impl TopUpIdentityScreen {
if ui.selectable_label(is_selected, wallet_alias).clicked() {
// Update the selected wallet from app_context
self.wallet = Some(wallet.clone());
// Reset the funding address
self.funding_address = None;
// Reset the funding asset lock
self.funding_asset_lock = None;
// Reset the funding UTXO
self.funding_utxo = None;
// Reset the copied to clipboard state
self.copied_to_clipboard = None;
// Reset the step to choose funding method
let mut step = self.step.write().unwrap();
*step = WalletFundedScreenStep::ChooseFundingMethod;
}
});
}
Expand Down
Loading