Skip to content

Commit

Permalink
MyFrameMain: only write last host if not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Aug 14, 2023
1 parent 8e5a5a8 commit 5fbb18b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/MyFrameMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1156,10 +1156,10 @@ void MyFrameMain::machine_connect(wxCommandEvent &event)
_("Connect to a specific host."),
host);

pConfig->Write(K_LASTHOST, s);

if(s != wxEmptyString)
spawn_conn(s);
if (s != wxEmptyString) {
pConfig->Write(K_LASTHOST, s);
spawn_conn(s);
}
}


Expand Down

0 comments on commit 5fbb18b

Please sign in to comment.