mirror of
https://github.com/ppy/osu
synced 2025-03-05 02:49:30 +00:00
Schedule deselection operations for safety
This commit is contained in:
parent
962c95dc01
commit
57a8cd7461
@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="modTypes">The types of <see cref="Mod"/>s which should be deselected.</param>
|
/// <param name="modTypes">The types of <see cref="Mod"/>s which should be deselected.</param>
|
||||||
/// <param name="immediate">Set to true to bypass animations and update selections immediately.</param>
|
/// <param name="immediate">Set to true to bypass animations and update selections immediately.</param>
|
||||||
public void DeselectTypes(IEnumerable<Type> modTypes, bool immediate = false)
|
public void DeselectTypes(IEnumerable<Type> modTypes, bool immediate = false) => Schedule(() =>
|
||||||
{
|
{
|
||||||
int delay = 0;
|
int delay = 0;
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Select one or more mods in this section and deselects all other ones.
|
/// Select one or more mods in this section and deselects all other ones.
|
||||||
|
Loading…
Reference in New Issue
Block a user