refactor(extrude): only open temp panel after sending the command and checking failed
this should allow people to handle the situation without creating an extra setting close #1434
This commit is contained in:
1 parent
c2325f2295
commit
2c3e0f6c90
2 files changed
+5
-7
No files matched your search
@@ -280,13 +280,6 @@ class Panel(ScreenPanel):
|
||||
widget, "printer.gcode.script",
|
||||
{"script": f"M109 S{target}"}
|
||||
)
|
||||
else:
|
||||
self._screen.show_popup_message(_("Temperature too low to extrude"))
|
||||
self.menu_item_clicked(
|
||||
widget,
|
||||
{"panel": "temperature", 'extra': self.current_extruder}
|
||||
)
|
||||
return
|
||||
if method == "extrude":
|
||||
self.extrude(widget, direction)
|
||||
elif method == "load_unload":
|
||||
|
||||
@@ -882,6 +882,11 @@ class KlipperScreen(Gtk.Window):
|
||||
self.prompt.decode(action)
|
||||
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]:
|
||||
self.show_panel("temperature", extra=self.printer.get_stat("toolhead", "extruder"))
|
||||
self.show_popup_message(_("Temperature too low to extrude"))
|
||||
return
|
||||
elif data.startswith("!! "):
|
||||
self.show_popup_message(data[3:], 3, from_ws=True)
|
||||
elif "unknown" in data.lower() and \
|
||||
|
||||
Reference in new issue
Block a user