From 325ea53e7bb873870b46d3e38b2b314493a22f79 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 3 May 2023 18:27:37 -0400 Subject: Refactored APState It is no longer a class, because it didn't need to be. --- tracker_frame.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tracker_frame.cpp') diff --git a/tracker_frame.cpp b/tracker_frame.cpp index 774b710..2a862a5 100644 --- a/tracker_frame.cpp +++ b/tracker_frame.cpp @@ -11,10 +11,11 @@ wxDEFINE_EVENT(STATE_CHANGED, wxCommandEvent); wxDEFINE_EVENT(STATUS_CHANGED, wxCommandEvent); TrackerFrame::TrackerFrame() - : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE | wxFULL_REPAINT_ON_RESIZE) { + : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker", wxDefaultPosition, + wxDefaultSize, wxDEFAULT_FRAME_STYLE | wxFULL_REPAINT_ON_RESIZE) { ::wxInitAllImageHandlers(); - GetAPState().SetTrackerFrame(this); + AP_SetTrackerFrame(this); SetSize(1280, 728); @@ -70,8 +71,8 @@ void TrackerFrame::OnConnect(wxCommandEvent &event) { GetTrackerConfig().ap_password = dlg.GetPasswordValue(); GetTrackerConfig().Save(); - GetAPState().Connect(dlg.GetServerValue(), dlg.GetPlayerValue(), - dlg.GetPasswordValue()); + AP_Connect(dlg.GetServerValue(), dlg.GetPlayerValue(), + dlg.GetPasswordValue()); } } -- cgit 1.4.1