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.
This commit is contained in:
Ruben D 2018-02-04 01:08:15 +01:00
parent 09f580de70
commit 8525131849
No known key found for this signature in database
GPG key ID: 6B42C9465E304A62

View file

@ -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()