1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:52:55 +08:00

Enlist a few more important notifications

This commit is contained in:
Dean Herbert 2018-07-14 03:31:19 +09:00
parent ac4f25c5bc
commit 81e5a37d6d
2 changed files with 8 additions and 1 deletions

View File

@ -48,7 +48,7 @@ namespace osu.Desktop.Updater
if (latest.TagName != version)
{
notificationOverlay.Post(new SimpleNotification
notificationOverlay.Post(new UpdateNotification
{
Text = $"A newer release of osu! has been found ({version} → {latest.TagName}).\n\n"
+ "Click here to download the new version, which can be installed over the top of your existing installation",
@ -62,6 +62,11 @@ namespace osu.Desktop.Updater
}
}
private class UpdateNotification : SimpleNotification
{
public override bool IsImportant => true;
}
private string getBestUrl(GitHubRelease release)
{
GitHubAsset bestAsset = null;

View File

@ -9,6 +9,8 @@ namespace osu.Game.Overlays.Notifications
{
public class ProgressCompletionNotification : SimpleNotification
{
public override bool IsImportant => true;
public ProgressCompletionNotification()
{
Icon = FontAwesome.fa_check;