mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Fix PopupDialog
potentially accumulating schedules during load
This commit is contained in:
parent
acb51dfca3
commit
cd02a8a9ca
@ -229,7 +229,7 @@ namespace osu.Game.Overlays.Dialog
|
|||||||
{
|
{
|
||||||
// Buttons are regularly added in BDL or LoadComplete, so let's schedule to ensure
|
// Buttons are regularly added in BDL or LoadComplete, so let's schedule to ensure
|
||||||
// they are ready to be pressed.
|
// they are ready to be pressed.
|
||||||
Schedule(() => Buttons.OfType<T>().FirstOrDefault()?.TriggerClick());
|
Scheduler.AddOnce(() => Buttons.OfType<T>().FirstOrDefault()?.TriggerClick());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnKeyDown(KeyDownEvent e)
|
protected override bool OnKeyDown(KeyDownEvent e)
|
||||||
|
Loading…
Reference in New Issue
Block a user