aboutsummaryrefslogtreecommitdiff
path: root/ParrotZikTray
diff options
context:
space:
mode:
Diffstat (limited to 'ParrotZikTray')
-rwxr-xr-xParrotZikTray6
1 files changed, 4 insertions, 2 deletions
diff --git a/ParrotZikTray b/ParrotZikTray
index c40640b..4cc8574 100755
--- a/ParrotZikTray
+++ b/ParrotZikTray
@@ -145,8 +145,10 @@ class ParrotZikBaseInterface(object):
def toggleAuto(self, widget):
if self.connected:
- self.parrot.auto_connection = self.auto_connection.get_active()
- self.auto_connection.set_active(self.parrot.auto_connection)
+ self.parrot.auto_connect = self.auto_connection.get_active()
+ self.auto_connection.set_active(self.parrot.auto_connect)
+ else:
+ self.deactivate()
def refresh(self):
if self.connected: