refactor: screen switch comparison to the right

This commit is contained in:
Alfredo Monclus committed 2024-10-28 12:19:04 -03:00
1 parent e01acf8edc
commit ce420aea94
1 file changed
+1 -1
+1 -1
View File
@@ -891,7 +891,7 @@ class KlipperScreen(Gtk.Window):
elif data.startswith("echo: "):
self.show_popup_message(data[6:], 1, from_ws=True)
elif "!! Extrude below minimum temp" in data:
if "temperature" != self._cur_panels[-1]:
if self._cur_panels[-1] != "temperature":
self.show_panel("temperature", extra=self.printer.get_stat("toolhead", "extruder"))
self.show_popup_message(_("Temperature too low to extrude"))
return