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:
parent
ac4f25c5bc
commit
81e5a37d6d
@ -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;
|
||||
|
@ -9,6 +9,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
{
|
||||
public class ProgressCompletionNotification : SimpleNotification
|
||||
{
|
||||
public override bool IsImportant => true;
|
||||
|
||||
public ProgressCompletionNotification()
|
||||
{
|
||||
Icon = FontAwesome.fa_check;
|
||||
|
Loading…
Reference in New Issue
Block a user