[chronojump/michrolab] show_start_page on menu 2.2.2 ensures widgets are correctly displayed
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [chronojump/michrolab] show_start_page on menu 2.2.2 ensures widgets are correctly displayed
- Date: Thu, 14 Jul 2022 16:37:50 +0000 (UTC)
commit 5ccdb00e0943da8895c470256ff10b056c0d85a4
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri May 27 16:03:44 2022 +0200
    show_start_page on menu 2.2.2 ensures widgets are correctly displayed
 src/gui/app1/chronojump.cs | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index bd087cb80..14b470529 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -3403,6 +3403,36 @@ public partial class ChronoJumpWindow
        {
                notebook_sup.CurrentPage = Convert.ToInt32(notebook_sup_pages.START);
 
+               if (current_mode == Constants.Modes.UNDEFINED ||
+                               current_mode == Constants.Modes.JUMPSSIMPLE ||
+                               current_mode == Constants.Modes.JUMPSREACTIVE)
+               {
+                       radio_menu_2_2_2_jumps.Active = true;
+                       on_button_menu_2_2_2_clicked (radio_menu_2_2_2_jumps, new EventArgs ());
+               }
+               else if (current_mode == Constants.Modes.RUNSSIMPLE ||
+                               current_mode == Constants.Modes.RUNSINTERVALLIC ||
+                               current_mode == Constants.Modes.RUNSENCODER)
+               {
+                       radio_menu_2_2_2_races.Active = true;
+                       on_button_menu_2_2_2_clicked (radio_menu_2_2_2_races, new EventArgs ());
+               }
+               else if (current_mode == Constants.Modes.FORCESENSOR) //TODO ISOMETRIC, INERTIAL|
+               {
+                       radio_menu_2_2_2_isometric.Active = true;
+                       on_button_menu_2_2_2_clicked (radio_menu_2_2_2_isometric, new EventArgs ());
+               }
+               else if (current_mode == Constants.Modes.POWERGRAVITATORY)
+               {
+                       radio_menu_2_2_2_weights.Active = true;
+                       on_button_menu_2_2_2_clicked (radio_menu_2_2_2_weights, new EventArgs ());
+               }
+               else if (current_mode == Constants.Modes.POWERINERTIAL)
+               {
+                       radio_menu_2_2_2_inertial.Active = true;
+                       on_button_menu_2_2_2_clicked (radio_menu_2_2_2_inertial, new EventArgs ());
+               }
+
                //show title
                string tempSessionName = "";
                if(currentSession != null)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]