[chronojump] Better sensitiveness of button_force_sensor_analyze_back_to_signal to not allow back while in option
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Better sensitiveness of button_force_sensor_analyze_back_to_signal to not allow back while in option
- Date: Fri, 20 Nov 2020 16:05:06 +0000 (UTC)
commit f50061d80d155708de5e0ef398052866961f99e2
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Nov 20 17:04:19 2020 +0100
Better sensitiveness of button_force_sensor_analyze_back_to_signal to not allow back while in options
src/gui/app1/forceSensorAnalyze.cs | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index ac056256..560106c6 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -158,12 +158,17 @@ public partial class ChronoJumpWindow
}
private int notebook_force_sensor_analyze_LastPage;
+ private bool button_force_sensor_analyze_back_to_signal_LastSensitive;
private void on_button_force_sensor_analyze_options_clicked (object o, EventArgs args)
{
//store the notebook to return to same place
notebook_force_sensor_analyze_LastPage = notebook_force_sensor_analyze.CurrentPage;
notebook_force_sensor_analyze.CurrentPage =
Convert.ToInt32(notebook_force_sensor_analyze_pages.AUTOMATICOPTIONS);
+ //do not allow to click Back while in options
+ button_force_sensor_analyze_back_to_signal_LastSensitive =
button_force_sensor_analyze_back_to_signal.Sensitive;
+ button_force_sensor_analyze_back_to_signal.Sensitive = false;
+
forceSensorAnalyzeOptionsSensitivity(false);
}
@@ -172,6 +177,8 @@ public partial class ChronoJumpWindow
//we can go to manual or to automatic
notebook_force_sensor_analyze.CurrentPage = notebook_force_sensor_analyze_LastPage;
+ button_force_sensor_analyze_back_to_signal.Sensitive =
button_force_sensor_analyze_back_to_signal_LastSensitive;
+
// 1 change stuff on Sqlite if needed
Sqlite.Open();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]