mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-12 09:48:55 +00:00
wallet: trim text on paste at creation
This commit is contained in:
@@ -229,7 +229,7 @@ impl WalletCreation {
|
||||
// Show paste button.
|
||||
let p_t = format!("{} {}", CLIPBOARD_TEXT, t!("paste").to_uppercase());
|
||||
View::button(ui, p_t, Colors::WHITE, || {
|
||||
let data = ZeroingString::from(cb.get_string_from_buffer());
|
||||
let data = ZeroingString::from(cb.get_string_from_buffer().trim());
|
||||
self.mnemonic_setup.mnemonic.import_text(&data);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user