From d53188baa1c4175d2f9456ac722d35facb47f818 Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Sat, 13 Jun 2015 00:28:37 +0200 Subject: Refactor. --- ParrotZikTray | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ParrotZikTray b/ParrotZikTray index a69abe4..6de9e1c 100755 --- a/ParrotZikTray +++ b/ParrotZikTray @@ -119,8 +119,10 @@ class ParrotZikBaseInterface(object): self.firmware_version.show() self.auto_connection.show() - self.name = self.parrot.friendly_name - self.version = self.parrot.version + self.indicator.info_item.set_label("Connected to: " + + self.parrot.friendly_name) + self.firmware_version.set_label( + "Firmware version: " + self.parrot.version) self.auto_connection.set_active(self.parrot.auto_connect) @@ -162,9 +164,6 @@ class ParrotZikBaseInterface(object): else: self.indicator.setIcon("zik-battery-low") - self.indicator.info_item.set_label("Connected to: " + self.name) - self.firmware_version.set_label( - "Firmware version: " + self.version) self.battery_state.set_label( "State: " + BatteryStates.representation[battery_state]) self.battery_level.set_label( -- cgit v1.2.1