[chronojump] ForceSensor: Ensure button_execute_test is not active after adjust if there are no persons
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] ForceSensor: Ensure button_execute_test is not active after adjust if there are no persons
- Date: Mon, 3 May 2021 14:42:20 +0000 (UTC)
commit ea56a3e0a254e1e78e24d0653a7b2d4af93a12f9
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon May 3 16:40:54 2021 +0200
ForceSensor: Ensure button_execute_test is not active after adjust if there are no persons
src/gui/app1/forceSensor.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index f3adfaea..bb4ef118 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -2707,7 +2707,7 @@ LogB.Information(" fs R ");
button_activate_chronopics.Sensitive = s;
image_test.Sensitive = s;
- button_execute_test.Sensitive = s;
+ button_execute_test.Sensitive = (s && currentPerson != null && currentPerson.UniqueID > 0 &&
currentSession != null);
button_force_sensor_image_save_signal.Sensitive = s;
viewport_persons.Sensitive = s;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]