From 77a3251b493c3af72ec7a7bde5105a4d615b757e Mon Sep 17 00:00:00 2001 From: Roberto Date: Fri, 9 Jan 2026 10:24:20 +0000 Subject: [PATCH 1/2] bugfix: fixed event config --- BlocksScreen/lib/panels/mainWindow.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/BlocksScreen/lib/panels/mainWindow.py b/BlocksScreen/lib/panels/mainWindow.py index 18549a39..e72ff534 100644 --- a/BlocksScreen/lib/panels/mainWindow.py +++ b/BlocksScreen/lib/panels/mainWindow.py @@ -620,7 +620,6 @@ def event(self, event: QtCore.QEvent) -> bool: self.messageReceivedEvent(event) return True return False - if event.type() == events.PrintStart.type(): self.disable_tab_bar() self.ui.extruder_temp_display.clicked.disconnect() @@ -641,10 +640,10 @@ def event(self, event: QtCore.QEvent) -> bool: ) return False - if event.type() == ( - events.PrintError.type() - or events.PrintComplete.type() - or events.PrintCancelled.type() + if event.type() in ( + events.PrintError.type(), + events.PrintComplete.type(), + events.PrintCancelled.type(), ): self.enable_tab_bar() self.ui.extruder_temp_display.clicked.disconnect() From 9c8af457eaaa40f5177dd665b5e812843388efd7 Mon Sep 17 00:00:00 2001 From: Roberto Date: Fri, 9 Jan 2026 10:25:18 +0000 Subject: [PATCH 2/2] Rev: removed on_cancel_print from handle cancel print --- BlocksScreen/lib/panels/printTab.py | 1 - 1 file changed, 1 deletion(-) diff --git a/BlocksScreen/lib/panels/printTab.py b/BlocksScreen/lib/panels/printTab.py index 104a765a..2a885362 100644 --- a/BlocksScreen/lib/panels/printTab.py +++ b/BlocksScreen/lib/panels/printTab.py @@ -342,7 +342,6 @@ def setProperty(self, name: str, value: typing.Any) -> bool: def handle_cancel_print(self) -> None: """Handles the print cancel action""" self.ws.api.cancel_print() - self.on_cancel_print.emit() self.loadscreen.show() self.loadscreen.setModal(True) self.loadwidget.set_status_message("Cancelling print...\nPlease wait")