1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 12:30:24 +08:00

Remove unnecessary guard

Setting a bindable's value to something if that value is already there
is a no-op (doesn't trigger bindings / callbacks).
This commit is contained in:
Bartłomiej Dach
2023-11-20 21:29:19 +09:00
Unverified
parent 0e0ab66148
commit 246aacb216
+1 -2
View File
@@ -1172,8 +1172,7 @@ namespace osu.Game.Screens.Edit
clock.SeekSmoothlyTo(position);
if (Mode.Value != EditorScreenMode.Compose)
Mode.Value = EditorScreenMode.Compose;
Mode.Value = EditorScreenMode.Compose;
// Delegate handling the selection to the ruleset.
currentScreen.Dependencies.Get<HitObjectComposer>().SelectHitObjects(position, selection);