From f46af5a7352434319296fdb8b98ead95a2ed747f Mon Sep 17 00:00:00 2001 From: lm Date: Sun, 19 Oct 2025 19:38:51 +0200 Subject: [PATCH] Fix processor initialisation order --- app/qt/main_window.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/qt/main_window.py b/app/qt/main_window.py index 39b0d48..988a29e 100644 --- a/app/qt/main_window.py +++ b/app/qt/main_window.py @@ -362,6 +362,10 @@ class MainWindow(QtWidgets.QMainWindow, I18nMixin): container_layout.addWidget(self.title_bar) self.content = QtWidgets.QWidget() + self.processor = QtImageProcessor() + self.processor.set_defaults(defaults) + self.processor.reset_exclusions_on_switch = reset_exclusions + self.content_layout = QtWidgets.QVBoxLayout(self.content) self.content_layout.setContentsMargins(24, 24, 24, 24) self.content_layout.setSpacing(18) @@ -381,9 +385,6 @@ class MainWindow(QtWidgets.QMainWindow, I18nMixin): self._toolbar_actions: Dict[str, Callable[[], None]] = {} self._register_default_actions() - self.processor = QtImageProcessor() - self.processor.set_defaults(defaults) - self.processor.reset_exclusions_on_switch = reset_exclusions self._sync_sliders_from_processor() self._update_colour_display(DEFAULT_COLOUR, self._t("palette.current"))