diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-02 23:37:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-02 23:37:49 +0100 |
| commit | b0f21ba2d7c2669616dfc78ce2e07d98ee58b3c5 (patch) | |
| tree | c0ca5c7e7563ffa5bfc10ed2bfc0faa77b034ea9 /src | |
| parent | 03c2c5756f7c0d393838625968904f3a96114d80 (diff) | |
Always hide reference note if it's empty.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_sub_panel.cc | 2 | ||||
| -rw-r--r-- | src/wx/video_panel.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index 5cdd2e5c3..bdb365158 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -74,7 +74,7 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, sha note->SetLabel (s); note->Wrap (400); - if (s.IsEmpty ()) { + if (s.IsEmpty() || Config::instance()->interface_complexity() == Config::INTERFACE_SIMPLE) { note->Hide (); } else { note->Show (); diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc index 685424b8c..63e9c062f 100644 --- a/src/wx/video_panel.cc +++ b/src/wx/video_panel.cc @@ -226,7 +226,7 @@ VideoPanel::add_to_grid () int r = 0; _reference->Show (full); - _reference_note->Show (full); + _reference_note->Show (full && !_reference_note->GetLabel().IsEmpty()); if (full) { wxBoxSizer* reference_sizer = new wxBoxSizer (wxVERTICAL); |
