about summary refs log tree commit diff stats
path: root/connection_dialog.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 15:13:14 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 15:13:14 -0400
commitf2a4553fa9d64cc39d138531d0a8d662af733ef8 (patch)
treeb2c7a0fe753fe2ea132b0582e8f1b7521303f3e1 /connection_dialog.cpp
parentdc4a14397ae226d91041389c2a47993f9c22f83d (diff)
downloadlingo-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.cpp11
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
3ConnectionDialog::ConnectionDialog() 5ConnectionDialog::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