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"))