From b0f21ba2d7c2669616dfc78ce2e07d98ee58b3c5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 2 Jun 2019 23:37:49 +0100 Subject: [PATCH] Always hide reference note if it's empty. --- src/wx/content_sub_panel.cc | 2 +- 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); -- 2.30.2