[chronojump] RunEncoder finish can be pressed when actually capturing (not before)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RunEncoder finish can be pressed when actually capturing (not before)
- Date: Thu, 16 Jul 2020 09:14:19 +0000 (UTC)
commit bfe7afa2f5f3b5b25eaaddb5f610bfa0bbe2a38b
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jul 15 17:51:33 2020 +0200
RunEncoder finish can be pressed when actually capturing (not before)
src/gui/app1/runEncoder.cs | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index d9c446cc..8f9f4461 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -349,7 +349,6 @@ public partial class ChronoJumpWindow
capturingRunEncoder = arduinoCaptureStatus.STARTING;
button_execute_test.Sensitive = false;
- event_execute_button_finish.Sensitive = true;
event_execute_button_cancel.Sensitive = true;
//forceCaptureStartMark = false;
@@ -385,6 +384,8 @@ public partial class ChronoJumpWindow
return true;
}
+ string capturingMessage = "Capturing ...";
+
//non GTK on this method
private void runEncoderCaptureDo()
{
@@ -431,7 +432,7 @@ public partial class ChronoJumpWindow
pps = Convert.ToInt32(strPPS[1]);
}
- runEncoderPulseMessage = "Capturing ...";
+ runEncoderPulseMessage = capturingMessage;
//forceCaptureStartMark = true;
capturingRunEncoder = arduinoCaptureStatus.CAPTURING;
@@ -1194,8 +1195,13 @@ public partial class ChronoJumpWindow
return false;
}
else
+ {
event_execute_label_message.Text = runEncoderPulseMessage;
+ if(runEncoderPulseMessage == capturingMessage)
+ event_execute_button_finish.Sensitive = true;
+ }
+
LogB.Information(" re E ");
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]