2nd Bug-Fix: modules.brightness_choose_n_action
This commit is contained in:
parent
e755b75106
commit
036cddeb8e
@ -67,8 +67,9 @@ class brightness_choose_n_action(common_base):
|
|||||||
if data is True:
|
if data is True:
|
||||||
self.set(self.KEY_ACTIVE_DEVICE, self.callback_device_list.index((device, key)))
|
self.set(self.KEY_ACTIVE_DEVICE, self.callback_device_list.index((device, key)))
|
||||||
else:
|
else:
|
||||||
if self.callback_device_list[self[self.KEY_ACTIVE_DEVICE]][0] == device:
|
if self[self.KEY_ACTIVE_DEVICE] is not None:
|
||||||
self.choose_next_device()
|
if self.callback_device_list[self[self.KEY_ACTIVE_DEVICE]][0] == device:
|
||||||
|
self.choose_next_device()
|
||||||
|
|
||||||
def choose_prev_device(self, device=None, key=None, data=None):
|
def choose_prev_device(self, device=None, key=None, data=None):
|
||||||
if self[self.KEY_ACTIVE_DEVICE] is not None:
|
if self[self.KEY_ACTIVE_DEVICE] is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user