[chronojump] sidebar: hide the person photo if session or persons are unfolded



commit 1ad20240eebae83c82f868891d99c19f2fdba07b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jul 22 21:41:18 2021 +0200

    sidebar: hide the person photo if session or persons are unfolded

 src/gui/app1/menu.cs | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index 4e5245931..bd0026efb 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -304,6 +304,11 @@ public partial class ChronoJumpWindow
                        } else
                                vbox_manage_persons.Visible = false;
                }
+
+               //hide the person photo if anything is unfolded
+               if(preferences.personPhoto)
+                       vbox_persons_bottom.Visible =
+                               (! check_menu_session.Active && ! check_manage_persons.Active);
        }
 
        private void on_button_menu_help_clicked (object o, EventArgs args)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]