mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 22:22:59 +08:00
Close object context menu on tool change
This commit is contained in:
parent
4e4a99decc
commit
9fa44bc135
@ -531,6 +531,9 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
|
|
||||||
if (!(tool is SelectTool))
|
if (!(tool is SelectTool))
|
||||||
EditorBeatmap.SelectedHitObjects.Clear();
|
EditorBeatmap.SelectedHitObjects.Clear();
|
||||||
|
|
||||||
|
// Prevent object context menu from staying open.
|
||||||
|
GetContainingFocusManager()?.ChangeFocus(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user