1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:17:27 +08:00

Use SimpleErrorNotification for error display

This commit is contained in:
Dean Herbert 2023-11-21 15:09:33 +09:00
parent 917a68eac3
commit 7c5345bf7e
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -562,7 +562,7 @@ namespace osu.Game
{ {
if (ScreenStack.CurrentScreen is not Editor editor) if (ScreenStack.CurrentScreen is not Editor editor)
{ {
Schedule(() => Notifications.Post(new SimpleNotification Schedule(() => Notifications.Post(new SimpleErrorNotification
{ {
Icon = FontAwesome.Solid.ExclamationTriangle, Icon = FontAwesome.Solid.ExclamationTriangle,
Text = EditorStrings.MustBeInEditorToHandleLinks Text = EditorStrings.MustBeInEditorToHandleLinks

View File

@ -1143,7 +1143,7 @@ namespace osu.Game.Screens.Edit
{ {
if (!EditorTimestampParser.TryParse(timestamp, out var timeSpan, out string selection)) if (!EditorTimestampParser.TryParse(timestamp, out var timeSpan, out string selection))
{ {
Schedule(() => notifications?.Post(new SimpleNotification Schedule(() => notifications?.Post(new SimpleErrorNotification
{ {
Icon = FontAwesome.Solid.ExclamationTriangle, Icon = FontAwesome.Solid.ExclamationTriangle,
Text = EditorStrings.FailedToParseEditorLink Text = EditorStrings.FailedToParseEditorLink