Commit a2537bf
committed
FIX: Control Schemes dropdown keeps showing a deleted scheme name after the last scheme is removed [UUM-141563]
After deleting the only control scheme in the Input Actions editor, the Control Schemes toolbar dropdown kept displaying the just-deleted scheme's name until the asset was saved or the editor reopened.
InputActionsEditorView.SetUpControlSchemesMenu(ViewState) only assigned m_ControlSchemesToolbar.text inside the `viewState.controlSchemes.Any()` branch, so when the collection became empty the toolbar retained its stale text. Add an else branch that resets the text to the "No Control Schemes" default seeded by InputActionsEditor.uxml.
Jira: https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-1415631 parent a8bc230 commit a2537bf
2 files changed
Lines changed: 5 additions & 0 deletions
File tree
- Packages/com.unity.inputsystem
- InputSystem/Editor/UITKAssetEditor/Views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
| |||
0 commit comments