diff --git a/src/gmc_conf.erl b/src/gmc_conf.erl index a537bec..fb947a0 100644 --- a/src/gmc_conf.erl +++ b/src/gmc_conf.erl @@ -97,9 +97,9 @@ init({Prefs, {Net, Acc, Keys, {AProcs, AMem, MProcs, MMem}}}) -> ok = wxFrame:center(Frame), true = wxFrame:show(Frame), State = - #s{wx = WX, frame = Frame, - lang = Lang, j = J, - net = Network, acc = AccTx, keys = KeysTx, + #s{wx = WX, frame = Frame, + lang = Lang, j = J, + net = Network, acc = AccTx, keys = KeysTx, cores = CoresTx, memory = MemoryTx}, {Frame, State}. @@ -205,7 +205,7 @@ done(State = #s{net = Network, acc = AccTx, keys = KeysTx, cores = CoresTx, memo 1 -> <<"testnet">>; _ -> <<"mainnet">> end, - AccID = wxTextCtrl:getValue(AccTx), + AccID = string:trim(wxTextCtrl:getValue(AccTx)), MOAR_IDs = wxTextCtrl:getValue(KeysTx), CoreS = wxTextCtrl:getValue(CoresTx), GigsS = wxTextCtrl:getValue(MemTx),