[chronojump] Fixed multichronopic hbox sensitiveness



commit f035dbaf53b1a2b579b1e2dd3e08eca1da9c5cf5
Author: Xavier de Blas <xaviblas master gnome org>
Date:   Wed Jun 2 17:52:30 2010 +0800

    Fixed multichronopic hbox sensitiveness

 src/execute/multiChronopic.cs |    6 +++---
 src/gui/chronojump.cs         |    3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/execute/multiChronopic.cs b/src/execute/multiChronopic.cs
index 77eac94..e46a506 100644
--- a/src/execute/multiChronopic.cs
+++ b/src/execute/multiChronopic.cs
@@ -235,7 +235,7 @@ public class MultiChronopicExecute : EventExecute
 				if (platformState2==Chronopic.Plataforma.ON) {
 					loggedState2 = States.ON;
 					cp2StartedIn = true;
-				} else if (platformState==Chronopic.Plataforma.OFF) {
+				} else if (platformState2==Chronopic.Plataforma.OFF) {
 					loggedState2 = States.OFF;
 					cp2StartedIn = false;
 				} else { //UNKNOW (Chronopic disconnected, port changed, ...)
@@ -253,7 +253,7 @@ public class MultiChronopicExecute : EventExecute
 					if (platformState3==Chronopic.Plataforma.ON) {
 						loggedState3 = States.ON;
 						cp3StartedIn = true;
-					} else if (platformState==Chronopic.Plataforma.OFF) {
+					} else if (platformState3==Chronopic.Plataforma.OFF) {
 						loggedState3 = States.OFF;
 						cp3StartedIn = false;
 					} else { //UNKNOW (Chronopic disconnected, port changed, ...)
@@ -270,7 +270,7 @@ public class MultiChronopicExecute : EventExecute
 						if (platformState4==Chronopic.Plataforma.ON) {
 							loggedState4 = States.ON;
 							cp4StartedIn = true;
-						} else if (platformState==Chronopic.Plataforma.OFF) {
+						} else if (platformState4==Chronopic.Plataforma.OFF) {
 							loggedState4 = States.OFF;
 							cp4StartedIn = false;
 						} else { //UNKNOW (Chronopic disconnected, port changed, ...)
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index b7fe0df..255ecbf 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -3837,6 +3837,7 @@ Console.WriteLine("X");
 	
 	private void on_chronopic_window_done (object o, EventArgs args) {
 		chronopicWin.FakeWindowDone.Clicked -= new EventHandler(on_chronopic_window_done);
+
 		if(chronopicWin.NumConnected()>=2) {
 			menuitem_multi_chronopic_start.Sensitive = true;
 			menuitem_run_analysis.Sensitive = true;
@@ -4995,6 +4996,7 @@ Console.WriteLine("X");
 		hbox_runs.Sensitive = true;
 		hbox_runs_interval.Sensitive = true;
 		hbox_pulses.Sensitive = true;
+		hbox_multi_chronopic_buttons.Sensitive = true;
 
 		//allow repeat last jump or run (check also if it wasn't cancelled)
 		if(! currentEventExecute.Cancel) {
@@ -5025,7 +5027,6 @@ Console.WriteLine("X");
 					break;
 				case EventType.Types.MULTICHRONOPIC:
 					Log.WriteLine("sensitiveGuiEventDone multichronopic");
-					hbox_multi_chronopic_buttons.Sensitive = true;
 					break;
 				default:
 					Log.WriteLine("sensitiveGuiEventDone default");



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