diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-13 04:20:01 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-13 04:20:01 +0200 |
commit | 5c500c5770763f946392bd83b8f66954929f0120 (patch) | |
tree | 42d1a195e913dded570646a15e22f9d49d7f57cc | |
parent | e9c6ffefde5885ed3a5ff0535843b834d77a5a09 (diff) | |
download | pyParrotZikTCP-5c500c5770763f946392bd83b8f66954929f0120.tar.xz pyParrotZikTCP-5c500c5770763f946392bd83b8f66954929f0120.zip |
Fix auto connection.
Diffstat (limited to '')
-rw-r--r-- | ParrotZik.py | 2 | ||||
-rwxr-xr-x | ParrotZikTray | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ParrotZik.py b/ParrotZik.py index c6cfd92..98469d0 100644 --- a/ParrotZik.py +++ b/ParrotZik.py @@ -153,7 +153,7 @@ class ParrotZikBase(object): @auto_connect.setter def auto_connect(self, arg): - self.api.get("/api/system/auto_connection/enabled", arg) + self.api.set("/api/system/auto_connection/enabled", arg) @property def anc_phone_mode(self): 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: |