Hurry!
This commit is contained in:
parent
c7fbe0cb41
commit
5c2fa92060
@ -486,11 +486,15 @@ code_change(_, State, _) ->
|
|||||||
{ok, State}.
|
{ok, State}.
|
||||||
|
|
||||||
|
|
||||||
terminate(normal, _) ->
|
terminate(Reason, _) ->
|
||||||
zx:stop();
|
ok = log(info, "Reason: ~p,", [Reason]),
|
||||||
terminate(Reason, State) ->
|
case whereis(gmc_con) of
|
||||||
ok = log(info, "Reason: ~tp, State: ~tp", [Reason, State]),
|
undefined ->
|
||||||
zx:stop().
|
zx:stop();
|
||||||
|
PID ->
|
||||||
|
ok = log(info, "gd_con found at: ~p", [PID]),
|
||||||
|
application:stop(gajumine)
|
||||||
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -882,7 +886,7 @@ do_recover_key(Mnemonic, State) ->
|
|||||||
|
|
||||||
do_recover_key2(Seed, State = #s{wallet = Current, wallets = Wallets, pass = Pass}) ->
|
do_recover_key2(Seed, State = #s{wallet = Current, wallets = Wallets, pass = Pass}) ->
|
||||||
#wallet{name = WalletName, keys = Keys, poas = POAs} = Current,
|
#wallet{name = WalletName, keys = Keys, poas = POAs} = Current,
|
||||||
Recovered = #key{id = ID, name = AccName} = hz_key_master:make_key("", Seed),
|
Recovered = #key{id = ID, name = AccName} = hz_key_master:make_key(Seed),
|
||||||
case lists:keymember(ID, #key.id, Keys) of
|
case lists:keymember(ID, #key.id, Keys) of
|
||||||
false ->
|
false ->
|
||||||
NewKeys = [Recovered | Keys],
|
NewKeys = [Recovered | Keys],
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
{wx = none :: none | wx:wx_object(),
|
{wx = none :: none | wx:wx_object(),
|
||||||
frame = none :: none | wx:wx_object(),
|
frame = none :: none | wx:wx_object(),
|
||||||
sizer = none :: none | wx:wx_object(),
|
sizer = none :: none | wx:wx_object(),
|
||||||
lang = en :: en | jp,
|
lang = en_US :: en_US | ja_JP,
|
||||||
j = none :: none | fun(),
|
j = none :: none | fun(),
|
||||||
prefs = #{} :: #{atom() := term()},
|
prefs = #{} :: #{atom() := term()},
|
||||||
accounts = [] :: [gajudesk:poa()],
|
accounts = [] :: [gajudesk:poa()],
|
||||||
@ -84,7 +84,7 @@ start_link(Accounts) ->
|
|||||||
|
|
||||||
init(Prefs) ->
|
init(Prefs) ->
|
||||||
ok = log(info, "GUI starting..."),
|
ok = log(info, "GUI starting..."),
|
||||||
Lang = maps:get(lang, Prefs, en_us),
|
Lang = maps:get(lang, Prefs, en_US),
|
||||||
Trans = gd_jt:read_translations(?MODULE),
|
Trans = gd_jt:read_translations(?MODULE),
|
||||||
J = gd_jt:j(Lang, Trans),
|
J = gd_jt:j(Lang, Trans),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user