Remove audio delay from simple interface.
authorCarl Hetherington <cth@carlh.net>
Fri, 11 Jan 2019 01:10:42 +0000 (01:10 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 11 Jan 2019 01:10:42 +0000 (01:10 +0000)
src/wx/audio_panel.cc

index 1c6ed15..d86ff5d 100644 (file)
@@ -148,14 +148,18 @@ AudioPanel::add_to_grid ()
 
        ++r;
 
 
        ++r;
 
-       add_label_to_sizer (_grid, _delay_label, true, wxGBPosition(r, 0));
-       {
+       _delay_label->Show (interface == Config::INTERFACE_FULL);
+       _delay->show (interface == Config::INTERFACE_FULL);
+       _delay_ms_label->Show (interface == Config::INTERFACE_FULL);
+
+       if (interface == Config::INTERFACE_FULL) {
+               add_label_to_sizer (_grid, _delay_label, true, wxGBPosition(r, 0));
                wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
                s->Add (_delay->wrapped(), 1, wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxRIGHT, 6);
                s->Add (_delay_ms_label, 0, wxALIGN_CENTER_VERTICAL);
                _grid->Add (s, wxGBPosition(r, 1));
                wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
                s->Add (_delay->wrapped(), 1, wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxRIGHT, 6);
                s->Add (_delay_ms_label, 0, wxALIGN_CENTER_VERTICAL);
                _grid->Add (s, wxGBPosition(r, 1));
+               ++r;
        }
        }
-       ++r;
 }
 
 AudioPanel::~AudioPanel ()
 }
 
 AudioPanel::~AudioPanel ()