Enable startup with #360 to not error

This commit is contained in:
Jordan 2021-12-10 21:13:18 -05:00
parent 698b86ac1c
commit 9660172e0b

View File

@ -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("")