From c0d7189d4f1b5e2b44300bb2de7211a59eb00d78 Mon Sep 17 00:00:00 2001 From: Dimitar Ivanov Date: Mon, 29 Jun 2026 12:27:58 +0300 Subject: [PATCH] Bugfix: wallet passphrase form submission on MacOS --- src/gd_v_wallman.erl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gd_v_wallman.erl b/src/gd_v_wallman.erl index abc325e..378e29e 100644 --- a/src/gd_v_wallman.erl +++ b/src/gd_v_wallman.erl @@ -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);