Enable startup with #360 to not error
This commit is contained in:
parent
698b86ac1c
commit
9660172e0b
@ -104,7 +104,8 @@ class MainPanel(MenuPanel):
|
||||
|
||||
|
||||
temp = Gtk.Label("")
|
||||
temp.set_markup(self.format_temp(self._printer.get_dev_stat(device, "temperature")))
|
||||
temperature = self._printer.get_dev_stat(device, "temperature")
|
||||
temp.set_markup(self.format_temp(temperature if temperature is not None else 0))
|
||||
|
||||
if can_target:
|
||||
target = Gtk.Label("")
|
||||
|
Loading…
x
Reference in New Issue
Block a user