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:
alfrix 2022-08-26 09:46:31 -03:00 committed by Alfredo Monclus
parent 2902e95068
commit d1604c68d6

View File

@ -222,6 +222,7 @@ class TemperaturePanel(ScreenPanel):
self.hide_numpad()
def select_heater(self, widget, device):
if self.active_heater is None:
if self.devices[device]["can_target"]:
if device in self.active_heaters:
self.active_heaters.pop(self.active_heaters.index(device))