From f2a4553fa9d64cc39d138531d0a8d662af733ef8 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 3 May 2023 15:13:14 -0400 Subject: Connection details are saved locally --- connection_dialog.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'connection_dialog.cpp') 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 @@ #include "connection_dialog.h" +#include "tracker_config.h" + ConnectionDialog::ConnectionDialog() : wxDialog(nullptr, wxID_ANY, "Connect to Archipelago") { - server_box_ = new wxTextCtrl(this, -1, "", wxDefaultPosition, {300, -1}); - player_box_ = new wxTextCtrl(this, -1, "", wxDefaultPosition, {300, -1}); - password_box_ = new wxTextCtrl(this, -1, "", wxDefaultPosition, {300, -1}); + server_box_ = new wxTextCtrl(this, -1, GetTrackerConfig().ap_server, wxDefaultPosition, + {300, -1}); + player_box_ = new wxTextCtrl(this, -1, GetTrackerConfig().ap_player, wxDefaultPosition, + {300, -1}); + password_box_ = new wxTextCtrl(this, -1, GetTrackerConfig().ap_password, + wxDefaultPosition, {300, -1}); wxFlexGridSizer* form_sizer = new wxFlexGridSizer(2, 10, 10); -- cgit 1.4.1