[chronojump] Chronopic window on disconnect cable complains only if it's in contacts mode
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Chronopic window on disconnect cable complains only if it's in contacts mode
- Date: Thu, 30 Oct 2014 23:46:39 +0000 (UTC)
commit 021b34a7d611d96fa5d73da8833ec9a1fde8fcdf
Author: Xavier de Blas <xaviblas gmail com>
Date: Sun Oct 26 09:03:36 2014 -0300
Chronopic window on disconnect cable complains only if it's in contacts mode
src/gui/chronopic.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index d88bb1f..7f254a7 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -193,7 +193,7 @@ public class ChronopicWindow
}
//recreate is used when a Chronopic was disconnected
- //port names com from gui/chronojump.cs to this method (myCpd)
+ //port names come from gui/chronojump.cs to this method (myCpd)
static public ChronopicWindow Create (ArrayList myCpd, string myEncoderPort, bool recreate, bool
volumeOn)
{
if (ChronopicWindowBox != null && recreate) {
@@ -222,14 +222,15 @@ public class ChronopicWindow
}
ChronopicWindowBox.type = type;
+ ChronopicWindowBox.volumeOn = volumeOn;
- if(type == "contacts")
+ if(type == "contacts") {
ChronopicWindowBox.notebook_main.CurrentPage = 0;
+ ChronopicWindowBox.checkChronopicDisconnected(); //encoder does not need this because
there's no connection
+ }
else
ChronopicWindowBox.notebook_main.CurrentPage = 1;
- ChronopicWindowBox.volumeOn = volumeOn;
- ChronopicWindowBox.checkChronopicDisconnected();
ChronopicWindowBox.createCombos();
//ports info comes from gui/chronojump.cs to Create mehod
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]