Handle whitespace around account ID
This commit is contained in:
parent
66a06480d5
commit
cb1d879b99
@ -97,9 +97,9 @@ init({Prefs, {Net, Acc, Keys, {AProcs, AMem, MProcs, MMem}}}) ->
|
|||||||
ok = wxFrame:center(Frame),
|
ok = wxFrame:center(Frame),
|
||||||
true = wxFrame:show(Frame),
|
true = wxFrame:show(Frame),
|
||||||
State =
|
State =
|
||||||
#s{wx = WX, frame = Frame,
|
#s{wx = WX, frame = Frame,
|
||||||
lang = Lang, j = J,
|
lang = Lang, j = J,
|
||||||
net = Network, acc = AccTx, keys = KeysTx,
|
net = Network, acc = AccTx, keys = KeysTx,
|
||||||
cores = CoresTx, memory = MemoryTx},
|
cores = CoresTx, memory = MemoryTx},
|
||||||
{Frame, State}.
|
{Frame, State}.
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ done(State = #s{net = Network, acc = AccTx, keys = KeysTx, cores = CoresTx, memo
|
|||||||
1 -> <<"testnet">>;
|
1 -> <<"testnet">>;
|
||||||
_ -> <<"mainnet">>
|
_ -> <<"mainnet">>
|
||||||
end,
|
end,
|
||||||
AccID = wxTextCtrl:getValue(AccTx),
|
AccID = string:trim(wxTextCtrl:getValue(AccTx)),
|
||||||
MOAR_IDs = wxTextCtrl:getValue(KeysTx),
|
MOAR_IDs = wxTextCtrl:getValue(KeysTx),
|
||||||
CoreS = wxTextCtrl:getValue(CoresTx),
|
CoreS = wxTextCtrl:getValue(CoresTx),
|
||||||
GigsS = wxTextCtrl:getValue(MemTx),
|
GigsS = wxTextCtrl:getValue(MemTx),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user