diff options
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 | ||