mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Remove necessity of AlwaysPresent
for ProgressUpdate
completion posting
This commit is contained in:
@ -88,7 +88,12 @@ namespace osu.Game.Overlays.Notifications
|
||||
state = value;
|
||||
|
||||
if (IsLoaded)
|
||||
{
|
||||
Schedule(updateState);
|
||||
|
||||
if (state == ProgressNotificationState.Completed)
|
||||
CompletionTarget?.Invoke(CreateCompletionNotification());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -141,7 +146,7 @@ namespace osu.Game.Overlays.Notifications
|
||||
|
||||
case ProgressNotificationState.Completed:
|
||||
loadingSpinner.Hide();
|
||||
Completed();
|
||||
base.Close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -154,12 +159,6 @@ namespace osu.Game.Overlays.Notifications
|
||||
Text = CompletionText
|
||||
};
|
||||
|
||||
protected void Completed()
|
||||
{
|
||||
CompletionTarget?.Invoke(CreateCompletionNotification());
|
||||
base.Close();
|
||||
}
|
||||
|
||||
public override bool DisplayOnTop => false;
|
||||
|
||||
public override bool IsImportant => false;
|
||||
|
Reference in New Issue
Block a user