about summary refs log tree commit diff stats
path: root/src/settings_dialog.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:43:13 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:43:13 -0500
commit4adfe42a300a597cf8e7036cd189d197b08a7f01 (patch)
tree684a9f825bc1ae919ea68049a941f6190b8b4f96 /src/settings_dialog.cpp
parenta9bc708c7eeeada4c59952ce71aa071175f8f27d (diff)
downloadlingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.tar.gz
lingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.tar.bz2
lingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.zip
Show hunt panels option
Diffstat (limited to 'src/settings_dialog.cpp')
-rw-r--r--src/settings_dialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings_dialog.cpp b/src/settings_dialog.cpp index 58e5988..0321b5a 100644 --- a/src/settings_dialog.cpp +++ b/src/settings_dialog.cpp
@@ -8,10 +8,12 @@ SettingsDialog::SettingsDialog() : wxDialog(nullptr, wxID_ANY, "Settings") {
8 hybrid_areas_box_ = new wxCheckBox( 8 hybrid_areas_box_ = new wxCheckBox(
9 this, wxID_ANY, 9 this, wxID_ANY,
10 "Use two colors to show that an area has partial availability"); 10 "Use two colors to show that an area has partial availability");
11 show_hunt_panels_box_ = new wxCheckBox(this, wxID_ANY, "Show hunt panels");
11 12
12 should_check_for_updates_box_->SetValue( 13 should_check_for_updates_box_->SetValue(
13 GetTrackerConfig().should_check_for_updates); 14 GetTrackerConfig().should_check_for_updates);
14 hybrid_areas_box_->SetValue(GetTrackerConfig().hybrid_areas); 15 hybrid_areas_box_->SetValue(GetTrackerConfig().hybrid_areas);
16 show_hunt_panels_box_->SetValue(GetTrackerConfig().show_hunt_panels);
15 17
16 wxBoxSizer* form_sizer = new wxBoxSizer(wxVERTICAL); 18 wxBoxSizer* form_sizer = new wxBoxSizer(wxVERTICAL);
17 19
@@ -21,6 +23,9 @@ SettingsDialog::SettingsDialog() : wxDialog(nullptr, wxID_ANY, "Settings") {
21 form_sizer->Add(hybrid_areas_box_, wxSizerFlags().HorzBorder()); 23 form_sizer->Add(hybrid_areas_box_, wxSizerFlags().HorzBorder());
22 form_sizer->AddSpacer(2); 24 form_sizer->AddSpacer(2);
23 25
26 form_sizer->Add(show_hunt_panels_box_, wxSizerFlags().HorzBorder());
27 form_sizer->AddSpacer(2);
28
24 form_sizer->Add(CreateButtonSizer(wxOK | wxCANCEL), wxSizerFlags().Center()); 29 form_sizer->Add(CreateButtonSizer(wxOK | wxCANCEL), wxSizerFlags().Center());
25 30
26 SetSizerAndFit(form_sizer); 31 SetSizerAndFit(form_sizer);