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),
|
||||
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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user