Remove tells

This commit is contained in:
Craig Everett 2024-11-13 13:21:58 +09:00
parent 22b94994bb
commit 1d65097c54

View File

@ -245,7 +245,6 @@ do_open3(Path, State = #s{frame = Frame, j = J}) ->
do_new(State = #s{frame = Frame, j = J, prefs = Prefs}) ->
tell("new_wallet ~p/~p ~p", [?FUNCTION_NAME, ?FUNCTION_ARITY, ?LINE]),
DefaultDir = maps:get(dir, Prefs, zx_lib:path(var, "otpr", "clutch")),
Options =
[{message, J("Save Location")},
@ -273,7 +272,6 @@ do_new(State = #s{frame = Frame, j = J, prefs = Prefs}) ->
end.
do_new2(Path, J, Frame) ->
tell("new_wallet ~p/~p ~p", [?FUNCTION_NAME, ?FUNCTION_ARITY, ?LINE]),
Dialog = wxDialog:new(Frame, ?wxID_ANY, J("Set Node"), [{size, {400, 250}}]),
Sizer = wxBoxSizer:new(?wxVERTICAL),
@ -308,7 +306,6 @@ do_new2(Path, J, Frame) ->
Result =
case wxDialog:showModal(Dialog) of
?wxID_OK ->
tell("new_wallet ~p/~p ~p", [?FUNCTION_NAME, ?FUNCTION_ARITY, ?LINE]),
Name =
case wxTextCtrl:getValue(NameTx) of
"" -> Path;
@ -328,10 +325,8 @@ do_new2(Path, J, Frame) ->
Result.
do_new3(_, _, bad) ->
tell("new_wallet ~p/~p ~p", [?FUNCTION_NAME, ?FUNCTION_ARITY, ?LINE]),
abort;
do_new3(Name, Path, Pass) ->
tell("new_wallet ~p/~p ~p", [?FUNCTION_NAME, ?FUNCTION_ARITY, ?LINE]),
gmc_con:new_wallet(Name, Path, Pass).