Fix mistaken state record reassignment
This commit is contained in:
parent
f60b794996
commit
42b9e9e9db
@ -196,8 +196,8 @@ handle_event(#wx{event = #wxCommand{type = command_button_clicked},
|
||||
handle_event(#wx{event = #wxCommand{type = command_listbox_doubleclicked,
|
||||
commandInt = Selected}},
|
||||
State = #s{wiz = none}) ->
|
||||
NewState = do_open2(Selected + 1, State),
|
||||
{noreply, NewState};
|
||||
ok = do_open2(Selected + 1, State),
|
||||
{noreply, State};
|
||||
handle_event(#wx{event = #wxClose{}}, State = #s{wiz = none}) ->
|
||||
ok = do_close(State),
|
||||
{noreply, State};
|
||||
@ -286,7 +286,8 @@ handle_button(Name, State) ->
|
||||
do_open(State = #s{wallets = []}) ->
|
||||
State;
|
||||
do_open(State = #s{wallets = [#wr{pass = true, path = Path}]}) ->
|
||||
do_open3(Path, State);
|
||||
ok = do_open3(Path, State),
|
||||
State;
|
||||
do_open(State = #s{wallets = [#wr{pass = false, path = Path}], frame = Frame}) ->
|
||||
ok =
|
||||
case gd_con:open_wallet(Path, none) of
|
||||
|
Loading…
x
Reference in New Issue
Block a user