mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 08:52:58 +08:00
Merge pull request #1775 from peppy/fix-progress-notifications-close
Fix progress notifications not creating their completion notification early enough
This commit is contained in:
commit
0d3b11a1a0
@ -85,9 +85,12 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
private void notificationClosed()
|
private void notificationClosed()
|
||||||
{
|
{
|
||||||
// hide ourselves if all notifications have been dismissed.
|
Schedule(() =>
|
||||||
if (totalCount == 0)
|
{
|
||||||
State = Visibility.Hidden;
|
// hide ourselves if all notifications have been dismissed.
|
||||||
|
if (totalCount == 0)
|
||||||
|
State = Visibility.Hidden;
|
||||||
|
});
|
||||||
|
|
||||||
updateCounts();
|
updateCounts();
|
||||||
}
|
}
|
||||||
|
@ -95,8 +95,8 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
|
|
||||||
protected virtual void Completed()
|
protected virtual void Completed()
|
||||||
{
|
{
|
||||||
base.Close();
|
|
||||||
CompletionTarget?.Invoke(CreateCompletionNotification());
|
CompletionTarget?.Invoke(CreateCompletionNotification());
|
||||||
|
base.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool DisplayOnTop => false;
|
public override bool DisplayOnTop => false;
|
||||||
|
Loading…
Reference in New Issue
Block a user