diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-03 15:13:14 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-03 15:13:14 -0400 |
commit | f2a4553fa9d64cc39d138531d0a8d662af733ef8 (patch) | |
tree | b2c7a0fe753fe2ea132b0582e8f1b7521303f3e1 /connection_dialog.cpp | |
parent | dc4a14397ae226d91041389c2a47993f9c22f83d (diff) | |
download | lingo-ap-tracker-f2a4553fa9d64cc39d138531d0a8d662af733ef8.tar.gz lingo-ap-tracker-f2a4553fa9d64cc39d138531d0a8d662af733ef8.tar.bz2 lingo-ap-tracker-f2a4553fa9d64cc39d138531d0a8d662af733ef8.zip |
Connection details are saved locally
Diffstat (limited to 'connection_dialog.cpp')
-rw-r--r-- | connection_dialog.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/connection_dialog.cpp b/connection_dialog.cpp index 55f68eb..9dd9984 100644 --- a/connection_dialog.cpp +++ b/connection_dialog.cpp | |||
@@ -1,10 +1,15 @@ | |||
1 | #include "connection_dialog.h" | 1 | #include "connection_dialog.h" |
2 | 2 | ||
3 | #include "tracker_config.h" | ||
4 | |||
3 | ConnectionDialog::ConnectionDialog() | 5 | ConnectionDialog::ConnectionDialog() |
4 | : wxDialog(nullptr, wxID_ANY, "Connect to Archipelago") { | 6 | : wxDialog(nullptr, wxID_ANY, "Connect to Archipelago") { |
5 | server_box_ = new wxTextCtrl(this, -1, "", wxDefaultPosition, {300, -1}); | 7 | server_box_ = new wxTextCtrl(this, -1, GetTrackerConfig().ap_server, wxDefaultPosition, |
6 | player_box_ = new wxTextCtrl(this, -1, "", wxDefaultPosition, {300, -1}); | 8 | {300, -1}); |
7 | password_box_ = new wxTextCtrl(this, -1, "", wxDefaultPosition, {300, -1}); | 9 | player_box_ = new wxTextCtrl(this, -1, GetTrackerConfig().ap_player, wxDefaultPosition, |
10 | {300, -1}); | ||
11 | password_box_ = new wxTextCtrl(this, -1, GetTrackerConfig().ap_password, | ||
12 | wxDefaultPosition, {300, -1}); | ||
8 | 13 | ||
9 | wxFlexGridSizer* form_sizer = new wxFlexGridSizer(2, 10, 10); | 14 | wxFlexGridSizer* form_sizer = new wxFlexGridSizer(2, 10, 10); |
10 | 15 | ||