1313#include " lastfm.hpp"
1414#include " rsrc.hpp"
1515#include " utils.hpp"
16+ #include " wx/sizer.h"
1617
1718std::string lastPlayingSong = " " ;
1819std::string lastMediaSource = " " ;
@@ -228,11 +229,8 @@ class EditAppDialog : public wxDialog {
228229 wxEVT_TEXT, [this , app](wxCommandEvent& event) { app->searchEndpoint = event.GetString ().ToStdString (); });
229230 formSizer->Add (searchEndpointInput, 1 , wxALL | wxEXPAND, 5 );
230231
231- mainSizer->Add (formSizer, 0 , wxEXPAND | wxALL, 5 );
232-
233232 // Dropdown
234- wxBoxSizer* dropdownSizer = new wxBoxSizer (wxHORIZONTAL);
235- dropdownSizer->Add (new wxStaticText (this , wxID_ANY, " Activity Type:" ), 0 , wxALL | wxALIGN_CENTER_VERTICAL, 5 );
233+ formSizer->Add (new wxStaticText (this , wxID_ANY, " Activity Type:" ), 0 , wxALL | wxALIGN_CENTER_VERTICAL, 5 );
236234 wxString choices[] = {_ (" Listening" ), _ (" Watching" ), _ (" Playing" )};
237235 wxChoice* activityChoice = new wxChoice (this , wxID_ANY, wxDefaultPosition, wxDefaultSize, 3 , choices);
238236
@@ -259,11 +257,12 @@ class EditAppDialog : public wxDialog {
259257 app->type = typeMap.at (event.GetString ());
260258 });
261259
262- dropdownSizer ->Add (activityChoice, 1 , wxALL | wxEXPAND, 5 );
263- mainSizer->Add (dropdownSizer , 0 , wxEXPAND);
260+ formSizer ->Add (activityChoice, 1 , wxALL | wxEXPAND, 5 );
261+ mainSizer->Add (formSizer , 0 , wxEXPAND);
264262
265263 // Process names group
266- wxStaticBoxSizer* processBox = new wxStaticBoxSizer (wxVERTICAL, this , _ (" Process names" ));
264+ formSizer->Add (new wxStaticText (this , wxID_ANY, _ (" Process names:" )), 0 , wxALL | wxALIGN_CENTER_VERTICAL, 5 );
265+ wxBoxSizer* processBox = new wxBoxSizer (wxVERTICAL);
267266
268267 wxListBox* listBox = new wxListBox (this , wxID_ANY);
269268
0 commit comments