From 4d16b2090e93f2fb9f2c5e5d717b6b47b26a7d72 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 7 Jul 2023 18:40:52 +1200 Subject: [PATCH] feat(ux): :lipstick: use error icon for all errors (#103) --- src/TogglTrack.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/TogglTrack.cs b/src/TogglTrack.cs index 74ed9dc..c262ebe 100644 --- a/src/TogglTrack.cs +++ b/src/TogglTrack.cs @@ -492,7 +492,7 @@ internal List NotifyMissingToken() { Title = "ERROR: Missing API token", SubTitle = "Configure Toggl Track API token in Flow Launcher settings.", - IcoPath = this._context.CurrentPluginMetadata.IcoPath, + IcoPath = "tip-error.png", Action = _ => { this._context.API.OpenSettingDialog(); @@ -513,7 +513,6 @@ internal List NotifyMissingToken() }; } - // TODO: use error icon internal List NotifyNetworkUnavailable() { return new List @@ -522,7 +521,7 @@ internal List NotifyNetworkUnavailable() { Title = "ERROR: No network connection", SubTitle = "Connect to the internet to use Toggl Track.", - IcoPath = this._context.CurrentPluginMetadata.IcoPath, + IcoPath = "tip-error.png", Action = _ => { return true; @@ -539,7 +538,7 @@ internal List NotifyInvalidToken() { Title = "ERROR: Invalid API token", SubTitle = $"{this._settings.ApiToken} is not a valid API token.", - IcoPath = this._context.CurrentPluginMetadata.IcoPath, + IcoPath = "tip-error.png", Action = _ => { this._context.API.OpenSettingDialog(); @@ -568,7 +567,7 @@ internal List NotifyUnknownError() { Title = "ERROR: Unknown error", SubTitle = "An unexpected error has occurred.", - IcoPath = this._context.CurrentPluginMetadata.IcoPath, + IcoPath = "tip-error.png", Action = _ => { return true;