mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Fix automation set moving not updating index.
This commit is contained in:
parent
7b1c788d7d
commit
ad5ac2c2ac
1 changed files with 6 additions and 1 deletions
|
|
@ -79,8 +79,13 @@ public class SetSelector : IDisposable
|
|||
Selection = set!;
|
||||
_dirty = true;
|
||||
break;
|
||||
case AutomationChanged.Type.RenamedSet:
|
||||
case AutomationChanged.Type.MovedSet:
|
||||
_dirty = true;
|
||||
var (oldIdx, newIdx) = ((int, int))data!;
|
||||
if (SelectionIndex == oldIdx)
|
||||
SelectionIndex = newIdx;
|
||||
break;
|
||||
case AutomationChanged.Type.RenamedSet:
|
||||
case AutomationChanged.Type.ChangeIdentifier:
|
||||
case AutomationChanged.Type.ToggleSet:
|
||||
_dirty = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue