1 Commits

Author SHA1 Message Date
Dimitar Ivanov c0d7189d4f Bugfix: wallet passphrase form submission on MacOS 2026-06-29 12:27:58 +03:00
2 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -529,7 +529,7 @@ make_key(State = #s{frame = Frame, j = J}) ->
recover_key(State = #s{frame = Frame, j = J}) ->
Dialog = wxDialog:new(Frame, ?wxID_ANY, J("Recover Key")),
Dialog = wxDialog:new(Frame, ?wxID_ANY, J("Mnemonic")),
Sizer = wxBoxSizer:new(?wxVERTICAL),
MnemSz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Recovery Phrase")}]),
MnemTx = wxTextCtrl:new(Dialog, ?wxID_ANY, [{style, ?wxTE_MULTILINE}]),
@@ -626,7 +626,7 @@ drop_key(State = #s{picker = Picker}) ->
drop_key(Selected, State = #s{frame = Frame, j = J, accounts = Accounts, prefs = Prefs}) ->
#poa{id = ID, name = Name} = lists:nth(Selected, Accounts),
Dialog = wxDialog:new(Frame, ?wxID_ANY, J("Delete key"), [{size, {500, 150}}]),
Dialog = wxDialog:new(Frame, ?wxID_ANY, J("New Key"), [{size, {500, 150}}]),
Sizer = wxBoxSizer:new(?wxVERTICAL),
Message = ["REALLY delete key?\r\n\r\n\"", Name, "\"\r\n(", ID, ")"],
MessageT = wxStaticText:new(Dialog, ?wxID_ANY, Message,
+8 -2
View File
@@ -313,8 +313,14 @@ do_open2(Selected, State = #s{wallets = Wallets}) ->
end.
do_open3(Path, State = #s{frame = Frame, j = J}) ->
Title = J("Passphrase"),
case zxw_modal_text:show(Frame, Title, [{password, true}]) of
Dialog = wxPasswordEntryDialog:new(Frame, J("Passphrase"), [{caption, J("Passphrase")}]),
Result =
case wxPasswordEntryDialog:showModal(Dialog) of
?wxID_OK -> {ok, wxPasswordEntryDialog:getValue(Dialog)};
?wxID_CANCEL -> cancel
end,
ok = wxPasswordEntryDialog:destroy(Dialog),
case Result of
{ok, Phrase} ->
case gd_con:open_wallet(Path, Phrase) of
ok -> do_close(State);