[chronojump] sidebar: hide the person photo if session or persons are unfolded
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] sidebar: hide the person photo if session or persons are unfolded
- Date: Thu, 22 Jul 2021 19:41:46 +0000 (UTC)
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]