diff --git a/src/gd_v_wallman.erl b/src/gd_v_wallman.erl index c5cf444..cdf8514 100644 --- a/src/gd_v_wallman.erl +++ b/src/gd_v_wallman.erl @@ -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