Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes a couple of regressions caused by c942d40, which was released in 1.5.3.0. That commit moved the ScriptWindow's
__scriptAdded
slot to the back of the slot list, while before it had been at the front. This means that ScriptWindows are now created last, after all otherscriptAdded
slots have run. This is a good thing - letting everyone configure the script how they want, and only then making the UI for it is far more natural.But we had a couple of configs which were using
ScriptWindow.acquire( createIfNecessary = False )
, now at a time when the ScriptWindow hasn't been created yet. So they were skipping the configuration of the ScriptWindow that we needed. This PR solves that by introducing a newScriptWindow.instanceCreatedSignal()
which is emitted whenever a ScriptWindow is made, and using that in the configs instead.I've targeted this PR to a new
1.5.4_maintenance
branch with the intention that we'll push the fix out immediately in a 1.5.4.1 release rather than waiting for 1.5.5.0. We want to get this fix out quickly, and there are a couple of extra things we still want to get into 1.5.5.0, and things currently merged that should wait for them. We'll just need to merge1.5.4_maintenance
to1.5_maintenance
after making the release and then we should be back to our regular flow.