[chronojump] Minor change



commit 843c7f116b35d03cc55e945563b44abb2d4ac0ff
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jul 12 13:18:55 2021 +0200

    Minor change

 src/gui/app1/chronojumpPersons.cs | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/app1/chronojumpPersons.cs b/src/gui/app1/chronojumpPersons.cs
index e4f8a6129..32dcb905e 100644
--- a/src/gui/app1/chronojumpPersons.cs
+++ b/src/gui/app1/chronojumpPersons.cs
@@ -52,10 +52,16 @@ public partial class ChronoJumpWindow
 
        private void on_button_manage_persons_clicked (object o, EventArgs args)
        {
-               vbox_manage_persons.Visible = ! vbox_manage_persons.Visible;
-
-               arrow_manage_persons_up.Visible = vbox_manage_persons.Visible;
-               arrow_manage_persons_down.Visible = ! vbox_manage_persons.Visible;
+               if(vbox_manage_persons.Visible)
+               {
+                       vbox_manage_persons.Visible = false;
+                       arrow_manage_persons_down.Visible = true;
+                       arrow_manage_persons_up.Visible = false;
+               } else {
+                       vbox_manage_persons.Visible = true;
+                       arrow_manage_persons_down.Visible = false;
+                       arrow_manage_persons_up.Visible = true;
+               }
        }
 
        private void showPersonPhoto (bool showPhoto)


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