From 852513184993ed234e291b7d3601bb5b8a608f55 Mon Sep 17 00:00:00 2001 From: Ruben D Date: Sun, 4 Feb 2018 01:08:15 +0100 Subject: [PATCH] Create post-processing tool button on start-up This causes the button to display immediately on start-up if there were any post-processing scripts in the current machine. If there weren't, then no button will be shown (as specified in the QML). Previously the QML was only loaded first upon clicking the item in the extensions menu. Now it has to be loaded on start-up in order to display that button. --- plugins/PostProcessingPlugin/PostProcessingPlugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/PostProcessingPlugin/PostProcessingPlugin.py b/plugins/PostProcessingPlugin/PostProcessingPlugin.py index ab4fd4b123..9e596277f7 100644 --- a/plugins/PostProcessingPlugin/PostProcessingPlugin.py +++ b/plugins/PostProcessingPlugin/PostProcessingPlugin.py @@ -38,6 +38,7 @@ class PostProcessingPlugin(QObject, Extension): Application.getInstance().getOutputDeviceManager().writeStarted.connect(self.execute) Application.getInstance().globalContainerStackChanged.connect(self._onGlobalContainerStackChanged) #When the current printer changes, update the list of scripts. + Application.getInstance().mainWindowChanged.connect(self._createView) #When the main window is created, create the view so that we can display the post-processing icon if necessary. self.scriptListChanged.connect(self._writeScriptsToStack) #Whenever there is a change, save it into the stack. selectedIndexChanged = pyqtSignal()