Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c0d7189d4f |
+1
-6
@@ -216,12 +216,7 @@ return_sizer(Parent, J, FunIlk, ReturnType) ->
|
|||||||
|
|
||||||
|
|
||||||
call_param_sizer(Frame, J) ->
|
call_param_sizer(Frame, J) ->
|
||||||
case hz:top_height() of
|
{ok, Height} = hz:top_height(),
|
||||||
{ok, Height} -> call_param_sizer(Frame, J, Height);
|
|
||||||
Error -> handle_troubling(State, Error)
|
|
||||||
end.
|
|
||||||
|
|
||||||
call_param_sizer(Frame, J, Height) ->
|
|
||||||
DefTTL = Height + 10000,
|
DefTTL = Height + 10000,
|
||||||
DefGasP = hz:min_gas_price(),
|
DefGasP = hz:min_gas_price(),
|
||||||
DefGas = 5000000,
|
DefGas = 5000000,
|
||||||
|
|||||||
@@ -313,8 +313,14 @@ do_open2(Selected, State = #s{wallets = Wallets}) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
do_open3(Path, State = #s{frame = Frame, j = J}) ->
|
do_open3(Path, State = #s{frame = Frame, j = J}) ->
|
||||||
Title = J("Passphrase"),
|
Dialog = wxPasswordEntryDialog:new(Frame, J("Passphrase"), [{caption, J("Passphrase")}]),
|
||||||
case zxw_modal_text:show(Frame, Title, [{password, true}]) of
|
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} ->
|
{ok, Phrase} ->
|
||||||
case gd_con:open_wallet(Path, Phrase) of
|
case gd_con:open_wallet(Path, Phrase) of
|
||||||
ok -> do_close(State);
|
ok -> do_close(State);
|
||||||
|
|||||||
Reference in New Issue
Block a user