Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c6486408cb |
+2
-2
@@ -529,7 +529,7 @@ make_key(State = #s{frame = Frame, j = J}) ->
|
|||||||
|
|
||||||
|
|
||||||
recover_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),
|
Sizer = wxBoxSizer:new(?wxVERTICAL),
|
||||||
MnemSz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Recovery Phrase")}]),
|
MnemSz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Recovery Phrase")}]),
|
||||||
MnemTx = wxTextCtrl:new(Dialog, ?wxID_ANY, [{style, ?wxTE_MULTILINE}]),
|
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}) ->
|
drop_key(Selected, State = #s{frame = Frame, j = J, accounts = Accounts, prefs = Prefs}) ->
|
||||||
#poa{id = ID, name = Name} = lists:nth(Selected, Accounts),
|
#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),
|
Sizer = wxBoxSizer:new(?wxVERTICAL),
|
||||||
Message = ["REALLY delete key?\r\n\r\n\"", Name, "\"\r\n(", ID, ")"],
|
Message = ["REALLY delete key?\r\n\r\n\"", Name, "\"\r\n(", ID, ")"],
|
||||||
MessageT = wxStaticText:new(Dialog, ?wxID_ANY, Message,
|
MessageT = wxStaticText:new(Dialog, ?wxID_ANY, Message,
|
||||||
|
|||||||
+6
-1
@@ -216,7 +216,12 @@ return_sizer(Parent, J, FunIlk, ReturnType) ->
|
|||||||
|
|
||||||
|
|
||||||
call_param_sizer(Frame, J) ->
|
call_param_sizer(Frame, J) ->
|
||||||
{ok, Height} = hz:top_height(),
|
case hz:top_height() of
|
||||||
|
{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,
|
||||||
|
|||||||
Reference in New Issue
Block a user