Fix processor initialisation order
This commit is contained in:
parent
213b35bf20
commit
f46af5a735
|
|
@ -362,6 +362,10 @@ class MainWindow(QtWidgets.QMainWindow, I18nMixin):
|
||||||
container_layout.addWidget(self.title_bar)
|
container_layout.addWidget(self.title_bar)
|
||||||
|
|
||||||
self.content = QtWidgets.QWidget()
|
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 = QtWidgets.QVBoxLayout(self.content)
|
||||||
self.content_layout.setContentsMargins(24, 24, 24, 24)
|
self.content_layout.setContentsMargins(24, 24, 24, 24)
|
||||||
self.content_layout.setSpacing(18)
|
self.content_layout.setSpacing(18)
|
||||||
|
|
@ -381,9 +385,6 @@ class MainWindow(QtWidgets.QMainWindow, I18nMixin):
|
||||||
self._toolbar_actions: Dict[str, Callable[[], None]] = {}
|
self._toolbar_actions: Dict[str, Callable[[], None]] = {}
|
||||||
self._register_default_actions()
|
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._sync_sliders_from_processor()
|
||||||
self._update_colour_display(DEFAULT_COLOUR, self._t("palette.current"))
|
self._update_colour_display(DEFAULT_COLOUR, self._t("palette.current"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue