aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Moiseev <m0sia@m0sia.ru>2013-12-13 17:35:38 +0600
committerDmitry Moiseev <m0sia@m0sia.ru>2013-12-13 17:35:38 +0600
commitf21d9400c5b585797b210e38526fd04f78555135 (patch)
tree489e98d87e9e37414a1eaaf89801c88424886af9
parentfb30e1f857a447a27db114032610293375ef5c3a (diff)
downloadpyParrotZikTCP-f21d9400c5b585797b210e38526fd04f78555135.tar.xz
pyParrotZikTCP-f21d9400c5b585797b210e38526fd04f78555135.zip
Fixed Lou Reed mode working logic
-rwxr-xr-xParrotZikTray25
1 files changed, 4 insertions, 21 deletions
diff --git a/ParrotZikTray b/ParrotZikTray
index 02d2130..3856e1d 100755
--- a/ParrotZikTray
+++ b/ParrotZikTray
@@ -100,34 +100,17 @@ class ParrotZikIndicator(SysIndicator):
if self.connected:
if self.check3.get_active():
self.parrot.setLouReedMode("true")
+ self.check4.set_sensitive(False)
else:
- self.parrot.setLouReedMode("false")
- if self.parrot.getLouReedMode() == "true":
- self.check3.set_active(True)
- else:
- self.check3.set_active(False)
-
- if self.parrot.getParrotConcertHall() == "true":
- self.check4.set_active(True)
- else:
- self.check4.set_active(False)
-
+ self.parrot.setLouReedMode("false")
+ self.check4.set_sensitive(True)
+
def toggleParrotConcertHall(self,widget):
if self.connected:
if self.check4.get_active():
self.parrot.setParrotConcertHall("true")
else:
self.parrot.setParrotConcertHall("false")
-
- if self.parrot.getLouReedMode() == "true":
- self.check3.set_active(True)
- else:
- self.check3.set_active(False)
-
- if self.parrot.getParrotConcertHall() == "true":
- self.check4.set_active(True)
- else:
- self.check4.set_active(False)
def CheckBattery(self):
if self.connected: