mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
Trigger state change when flipping via hotkey in the editor
This will trigger a change even if nothing happens. But I think that's okay (not easy to avoid) because the change handler should be aware that nothing changed, if anything. Closes https://github.com/ppy/osu/issues/24065.
This commit is contained in:
parent
1d4380cfd0
commit
29376ffcc0
@ -163,10 +163,18 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
switch (e.Action)
|
switch (e.Action)
|
||||||
{
|
{
|
||||||
case GlobalAction.EditorFlipHorizontally:
|
case GlobalAction.EditorFlipHorizontally:
|
||||||
return HandleFlip(Direction.Horizontal, true);
|
ChangeHandler?.BeginChange();
|
||||||
|
HandleFlip(Direction.Horizontal, true);
|
||||||
|
ChangeHandler?.EndChange();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
|
||||||
case GlobalAction.EditorFlipVertically:
|
case GlobalAction.EditorFlipVertically:
|
||||||
return HandleFlip(Direction.Vertical, true);
|
ChangeHandler?.BeginChange();
|
||||||
|
HandleFlip(Direction.Vertical, true);
|
||||||
|
ChangeHandler?.EndChange();
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user