mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Reset the selected script index upon changing printers
So that you're not getting into a state of viewing an invalid index. If you switch to a printer with 0 scripts attached, the index is still invalid, but it won't display anything then so you're okay.
This commit is contained in:
parent
91ab53e49c
commit
bebcd78db0
1 changed files with 1 additions and 0 deletions
|
@ -216,6 +216,7 @@ class PostProcessingPlugin(QObject, Extension):
|
|||
new_script._instance.setProperty(setting_key, "value", setting_value)
|
||||
self._script_list.append(new_script)
|
||||
|
||||
self.setSelectedScriptIndex(0)
|
||||
self.scriptListChanged.emit()
|
||||
|
||||
def _writeScriptsToStack(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue