Correctly reset the script list on machine change

Fixes #5747
This commit is contained in:
Jaime van Kessel 2019-05-20 10:46:47 +02:00
parent cb68a1f100
commit 5c33277d9a

View file

@ -219,6 +219,7 @@ class PostProcessingPlugin(QObject, Extension):
self._script_list.clear() self._script_list.clear()
if not new_stack.getMetaDataEntry("post_processing_scripts"): # Missing or empty. if not new_stack.getMetaDataEntry("post_processing_scripts"): # Missing or empty.
self.scriptListChanged.emit() # Even emit this if it didn't change. We want it to write the empty list to the stack's metadata. self.scriptListChanged.emit() # Even emit this if it didn't change. We want it to write the empty list to the stack's metadata.
self.setSelectedScriptIndex(-1)
return return
self._script_list.clear() self._script_list.clear()