mirror of https://github.com/ppy/osu
Use `SimpleErrorNotification` for error display
This commit is contained in:
parent
917a68eac3
commit
7c5345bf7e
|
@ -562,7 +562,7 @@ public void HandleTimestamp(string timestamp)
|
|||
{
|
||||
if (ScreenStack.CurrentScreen is not Editor editor)
|
||||
{
|
||||
Schedule(() => Notifications.Post(new SimpleNotification
|
||||
Schedule(() => Notifications.Post(new SimpleErrorNotification
|
||||
{
|
||||
Icon = FontAwesome.Solid.ExclamationTriangle,
|
||||
Text = EditorStrings.MustBeInEditorToHandleLinks
|
||||
|
|
|
@ -1143,7 +1143,7 @@ public void HandleTimestamp(string timestamp)
|
|||
{
|
||||
if (!EditorTimestampParser.TryParse(timestamp, out var timeSpan, out string selection))
|
||||
{
|
||||
Schedule(() => notifications?.Post(new SimpleNotification
|
||||
Schedule(() => notifications?.Post(new SimpleErrorNotification
|
||||
{
|
||||
Icon = FontAwesome.Solid.ExclamationTriangle,
|
||||
Text = EditorStrings.FailedToParseEditorLink
|
||||
|
|
Loading…
Reference in New Issue