mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +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 int runningDepth;
|
||||||
|
|
||||||
private void notificationClosed()
|
private void notificationClosed() => updateCounts();
|
||||||
{
|
|
||||||
Schedule(() =>
|
|
||||||
{
|
|
||||||
// hide ourselves if all notifications have been dismissed.
|
|
||||||
if (totalCount == 0)
|
|
||||||
State = Visibility.Hidden;
|
|
||||||
});
|
|
||||||
|
|
||||||
updateCounts();
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly Scheduler postScheduler = new Scheduler();
|
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)));
|
var section = sections.Children.FirstOrDefault(s => s.AcceptTypes.Any(accept => accept.IsAssignableFrom(ourType)));
|
||||||
section?.Add(notification, notification.DisplayOnTop ? -runningDepth : runningDepth);
|
section?.Add(notification, notification.DisplayOnTop ? -runningDepth : runningDepth);
|
||||||
|
|
||||||
|
State = Visibility.Visible;
|
||||||
|
|
||||||
updateCounts();
|
updateCounts();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user