Merge branch 'master' into take_screenshot

This commit is contained in:
Dean Herbert 2018-03-22 21:34:53 +09:00 committed by GitHub
commit e7cb579ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
});