mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Restore old auto-popout notification overlay behaviour
This commit is contained in:
parent
bedb427ceb
commit
14a653aa28
@ -110,17 +110,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
private int runningDepth;
|
||||
|
||||
private void notificationClosed()
|
||||
{
|
||||
Schedule(() =>
|
||||
{
|
||||
// hide ourselves if all notifications have been dismissed.
|
||||
if (totalCount == 0)
|
||||
State = Visibility.Hidden;
|
||||
});
|
||||
|
||||
updateCounts();
|
||||
}
|
||||
private void notificationClosed() => updateCounts();
|
||||
|
||||
private readonly Scheduler postScheduler = new Scheduler();
|
||||
|
||||
@ -141,6 +131,8 @@ namespace osu.Game.Overlays
|
||||
var section = sections.Children.FirstOrDefault(s => s.AcceptTypes.Any(accept => accept.IsAssignableFrom(ourType)));
|
||||
section?.Add(notification, notification.DisplayOnTop ? -runningDepth : runningDepth);
|
||||
|
||||
State = Visibility.Visible;
|
||||
|
||||
updateCounts();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user