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 @@ 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

View File

@ -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