mirror of
https://github.com/ppy/osu
synced 2025-02-21 04:57:11 +00:00
Merge pull request #15881 from peppy/fix-toast-mutation
This commit is contained in:
commit
65054986ba
@ -95,13 +95,13 @@ namespace osu.Game.Overlays
|
||||
/// Displays the provided <see cref="Toast"/> temporarily.
|
||||
/// </summary>
|
||||
/// <param name="toast"></param>
|
||||
public void Display(Toast toast)
|
||||
public void Display(Toast toast) => Schedule(() =>
|
||||
{
|
||||
box.Child = toast;
|
||||
DisplayTemporarily(box);
|
||||
}
|
||||
});
|
||||
|
||||
private void displayTrackedSettingChange(SettingDescription description) => Schedule(() => Display(new TrackedSettingToast(description)));
|
||||
private void displayTrackedSettingChange(SettingDescription description) => Display(new TrackedSettingToast(description));
|
||||
|
||||
private TransformSequence<Drawable> fadeIn;
|
||||
private ScheduledDelegate fadeOut;
|
||||
|
Loading…
Reference in New Issue
Block a user