summaryrefslogtreecommitdiff
path: root/src/wx/content_sub_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-21 23:00:55 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-21 23:02:49 +0100
commit44da1840ca17d0945cb1886bb17218990850894c (patch)
treeb6fab2f9fa7202aef68f948f2028a36ca476d5ea /src/wx/content_sub_panel.cc
parentce058471aa9995adac968cecc205f5a4319f449e (diff)
Remove the "simple" UI (#1868).
It just seemed to cause more problems than it solved; mainly people enabling it by mistake and then being told to click buttons that they could not see.
Diffstat (limited to 'src/wx/content_sub_panel.cc')
-rw-r--r--src/wx/content_sub_panel.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc
index 8cf04b93c..1a92c0dcd 100644
--- a/src/wx/content_sub_panel.cc
+++ b/src/wx/content_sub_panel.cc
@@ -45,19 +45,6 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name)
_grid = new wxGridBagSizer (DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
_sizer->Add (_grid, 0, wxALL, 8);
-
- _config_connection = Config::instance()->Changed.connect (boost::bind (&ContentSubPanel::config_changed, this, _1));
-}
-
-void
-ContentSubPanel::config_changed (Config::Property p)
-{
- if (p == Config::INTERFACE_COMPLEXITY) {
- _grid->Clear ();
- add_to_grid ();
- _sizer->Layout ();
- _grid->Layout ();
- }
}
void
@@ -73,7 +60,7 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, sha
note->Wrap (400);
- if (cannot.IsEmpty() || Config::instance()->interface_complexity() == Config::INTERFACE_SIMPLE) {
+ if (cannot.IsEmpty()) {
note->Hide ();
} else {
note->Show ();