FIX: [Port] [UUM-154808] Fixing glitch on the Input Actions Editor window when closing popup window - #2488
Merged
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## develop #2488 +/- ##
===========================================
+ Coverage 78.95% 78.96% +0.01%
===========================================
Files 767 767
Lines 140914 140949 +35
===========================================
+ Hits 111262 111305 +43
+ Misses 29652 29644 -8 Flags with carried forward coverage won't be shown. Click here to find out more.
|
Pauliusd01
requested review from
K-Tone
and removed request for
UnityAnthony
September 30, 2026 04:25
Pauliusd01
approved these changes
Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Backport of: https://github.cds.internal.unity3d.com/unity/unity/pull/126669
The purpose of this PR is to fix the glitch on the Input Actions Editor window when closing popup with the option "Cancel" (third one from the popup button list).
Replacing the old window's custom unsaved-changes handling with EditorWindow's built-in. Some code has been deleted plus reason:
CheckCanCloseAndPromptIfDirty+ itsOnDestroycall --> Unity prompts pre-destroy viahasUnsavedChangesReshowEditorWindowWithUnsavedChanges--> Nothing to resurrect — the glitch itself!!wantsToQuithook,m_IsEditorQuitting, the delayCall reset --> Quit uses the same built-in promptGetEditorTitle(lost itsisDirtyparam) --> Unity draws its own unsaved marker; it was doubledUpdateWindowTitle()inDirtyInputActionsEditorWindow--> Collapses toisDirty = HasContentChanged();since the title no longer encodes dirtinessBefore:
https://github.cds.internal.unity3d.com/user-attachments/assets/8abad528-b6f8-413a-a4fd-0de33385e4d7
After:
https://github.cds.internal.unity3d.com/user-attachments/assets/afa45998-5875-434f-b528-83764dabec1b
Testing status & QA
N/A
Overall Product Risks
Please rate the potential complexity and halo effect from low to high for the reviewers. Note down potential risks to specific Editor branches if any.
Comments to reviewers
Please describe any additional information such as what to focus on, or historical info for the reviewers.
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.