hide popups from panel initialization

ideally the initialization should not contain this commands but at the moment klipper nor moonraker provide a way to identify the required status
This commit is contained in:
alfrix
2022-12-07 16:59:55 -03:00
parent 701ff35652
commit f31ae7a829
2 changed files with 5 additions and 10 deletions

View File

@@ -724,7 +724,8 @@ class KlipperScreen(Gtk.Window):
self.show_popup_message(data[6:], 1)
elif data.startswith("!! "):
self.show_popup_message(data[3:], 3)
elif "unknown" in data.lower():
elif "unknown" in data.lower() and \
not ("TESTZ" in data or "MEASURE_AXES_NOISE" in data or "ACCELEROMETER_QUERY" in data):
self.show_popup_message(data)
if "SAVE_CONFIG" in data and self.printer.state == "ready":
script = {"script": "SAVE_CONFIG"}