From 64bcb2f38bc47d9c4edd61fa0590da0698a6bc4b Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Sat, 13 Jun 2015 03:35:34 +0200 Subject: Move rooms to submenu. --- ParrotZikTray | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/ParrotZikTray b/ParrotZikTray index 67ccf65..f2fe92a 100755 --- a/ParrotZikTray +++ b/ParrotZikTray @@ -255,6 +255,13 @@ class ParrotZikVersion2Interface(ParrotZikBaseInterface): self.room_sound_effect_enabled = MenuItem( "Enabled", self.toggle_room_sound_effect, sensitive=True, checkitem=True) + self.rooms = MenuItem("Rooms", None, sensitive=True, checkitem=False) + self.room_sound_effect_submenu.append(self.room_sound_effect_enabled) + self.room_sound_effect_submenu.append(self.rooms) + + self.rooms_submenu = Menu() + self.rooms.set_submenu(self.rooms_submenu) + self.concert_hall_mode = MenuItem("Concert Hall", self.toggle_concert_hall_mode, sensitive=True, checkitem=True) @@ -264,11 +271,10 @@ class ParrotZikVersion2Interface(ParrotZikBaseInterface): sensitive=True, checkitem=True) self.silent_mode = MenuItem("Silent Room", self.toggle_silent_room_mode, sensitive=True, checkitem=True) - self.room_sound_effect_submenu.append(self.room_sound_effect_enabled) - self.room_sound_effect_submenu.append(self.concert_hall_mode) - self.room_sound_effect_submenu.append(self.jazz_mode) - self.room_sound_effect_submenu.append(self.living_mode) - self.room_sound_effect_submenu.append(self.silent_mode) + self.rooms_submenu.append(self.concert_hall_mode) + self.rooms_submenu.append(self.jazz_mode) + self.rooms_submenu.append(self.living_mode) + self.rooms_submenu.append(self.silent_mode) self.indicator.menu.append(self.room_sound_effect) self.flight_mode = MenuItem("Flight Mode", self.toggle_flight_mode, -- cgit v1.2.1