temp: do not change preheat selections while in the numpad
it's possible to just use one selection list and unselect the rest, but i think that there is some benefit in usability keeping the selections separated
This commit is contained in:
parent
2902e95068
commit
d1604c68d6
@ -222,17 +222,18 @@ class TemperaturePanel(ScreenPanel):
|
|||||||
self.hide_numpad()
|
self.hide_numpad()
|
||||||
|
|
||||||
def select_heater(self, widget, device):
|
def select_heater(self, widget, device):
|
||||||
if self.devices[device]["can_target"]:
|
if self.active_heater is None:
|
||||||
if device in self.active_heaters:
|
if self.devices[device]["can_target"]:
|
||||||
self.active_heaters.pop(self.active_heaters.index(device))
|
if device in self.active_heaters:
|
||||||
self.devices[device]['name'].get_style_context().remove_class("button_active")
|
self.active_heaters.pop(self.active_heaters.index(device))
|
||||||
self.devices[device]['select'].set_label(_("Select"))
|
self.devices[device]['name'].get_style_context().remove_class("button_active")
|
||||||
logging.info(f"Deselecting {device}")
|
self.devices[device]['select'].set_label(_("Select"))
|
||||||
return
|
logging.info(f"Deselecting {device}")
|
||||||
self.active_heaters.append(device)
|
return
|
||||||
self.devices[device]['name'].get_style_context().add_class("button_active")
|
self.active_heaters.append(device)
|
||||||
self.devices[device]['select'].set_label(_("Deselect"))
|
self.devices[device]['name'].get_style_context().add_class("button_active")
|
||||||
logging.info(f"Seselecting {device}")
|
self.devices[device]['select'].set_label(_("Deselect"))
|
||||||
|
logging.info(f"Seselecting {device}")
|
||||||
return
|
return
|
||||||
|
|
||||||
def set_temperature(self, widget, setting):
|
def set_temperature(self, widget, setting):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user