fix main_menu left_panel graph crashing/hiding after a config change of heaters
This commit is contained in:
parent
eb0e6ad803
commit
baae949beb
@ -44,7 +44,8 @@ class HeaterGraph(Gtk.DrawingArea):
|
||||
|
||||
def get_max_length(self):
|
||||
return min(len(self.printer.get_temp_store(name, "temperatures"))
|
||||
for name in self.store if "temperatures" in self.store[name])
|
||||
for name in self.store if "temperatures" in self.store[name]
|
||||
and self.printer.get_temp_store(name, "temperatures"))
|
||||
|
||||
def get_max_num(self, data_points=0):
|
||||
mnum = [0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user