[chronojump] More fixes on new/load session unfolding since unified sidebar



commit b184d71ae55bba483dddbee2b6262a616f28ae54
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jul 26 13:27:40 2021 +0200

    More fixes on new/load session unfolding since unified sidebar

 src/gui/app1/chronojump.cs | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 434c32682..168aaaf56 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -2720,10 +2720,6 @@ public partial class ChronoJumpWindow
                radio_mode_contacts_capture.Active = true;
                radio_mode_encoder_capture_small.Active = true;
 
-               vbox_manage_persons.Visible = true;
-               arrow_manage_persons_up.Visible = true;
-               arrow_manage_persons_down.Visible = false;
-
                //show hidden widgets
                sensitiveGuiNoSession();
                sensitiveGuiYesSession();
@@ -2753,6 +2749,9 @@ public partial class ChronoJumpWindow
                //fold menu session
                check_menu_session.Click();
 
+               //unfold menu person
+               check_manage_persons.Click();
+
                SqlitePreferences.Update(SqlitePreferences.LastSessionID, currentSession.UniqueID.ToString(), 
false);
        }
        
@@ -2825,6 +2824,9 @@ public partial class ChronoJumpWindow
 
                definedSession = true;
 
+               //fold menu session
+               check_menu_session.Click();
+
                hbox_persons_bottom_photo.Sensitive = false;
                vbox_persons_bottom_no_photo.Sensitive = false;
                LogB.Information("foundPersons: " + foundPersons.ToString());
@@ -2841,13 +2843,9 @@ public partial class ChronoJumpWindow
                        currentPerson = null;
                        label_top_person_name.Text = "";
                        label_top_encoder_person_name.Text = "";
-                       vbox_manage_persons.Visible = true;
-                       arrow_manage_persons_up.Visible = true;
-                       arrow_manage_persons_down.Visible = false;
-               }
 
-               //fold menu session
-               check_menu_session.Click();
+                       check_manage_persons.Click(); //unfold persons.
+               }
 
                //update report
                report.SessionID = currentSession.UniqueID;


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