Skip to content

Commit

Permalink
Merge pull request #53 from ILW8/improve-replay-import-notifications
Browse files Browse the repository at this point in the history
automatically dismiss replay import notification
  • Loading branch information
ILW8 authored May 13, 2024
2 parents d0e6e2e + 64209e9 commit 8e17b44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion osu.Game/Overlays/Notifications/ProgressNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,17 @@ private void attemptPostCompletion()

private ProgressNotificationState state;

protected virtual Notification CreateCompletionNotification() => new ProgressCompletionNotification
protected virtual Notification CreateCompletionNotification() => new SilencedProgressCompletionNotification
{
Activated = CompletionClickAction,
Text = CompletionText
};

private partial class SilencedProgressCompletionNotification : ProgressCompletionNotification
{
public override bool IsImportant => false;
}

public override bool DisplayOnTop => false;

public override bool IsImportant => false;
Expand Down

0 comments on commit 8e17b44

Please sign in to comment.