[Builtins][MediaWindow] Propagate window replace intention and set th… #18303
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.
…e start directory
Description
#17893 introduced a regression when using the
ReplaceWindow
builtin. The main issue lies in the fact that the new logic don't set the start directory if we came from the same window as we are just adding a new path to the window history. The problem is that, with replace window, the last window is in fact being popped from the window history by the window manager. This means that if we replace the same window with a different path chances are the window won't move to the new path.To fix it, I'm propagating this replace/swapping window intention as a string parameter thus reinstating the previous
ReplaceWindow
behaviour while keeping the sameActivateWindow
behaviour.@ronie @roidy can you guys check if you can still reproduce the issue?
The previous PR should have not been backported as I said here (#17893 (comment)). As a result we now have the
ReplaceWindow
and a few skins broken in Leia. I'll add a backport label just in case we decide to make yet another final-final-reallyfinal Leia version (@DaveTBlake fyi).Motivation and Context
Fix #18239
How Has This Been Tested?
Using a simple python script: