From 336e51d1047f085b83fb5bb9b886b3b11b4dd0ed Mon Sep 17 00:00:00 2001 From: dcog989 Date: Sun, 14 Sep 2025 17:08:37 +0100 Subject: [PATCH] IcoPath to const string --- Plugins/Flow.Launcher.Plugin.Calculator/Main.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Calculator/Main.cs b/Plugins/Flow.Launcher.Plugin.Calculator/Main.cs index d19dbc9c2..54ac61ffb 100644 --- a/Plugins/Flow.Launcher.Plugin.Calculator/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Calculator/Main.cs @@ -20,6 +20,7 @@ namespace Flow.Launcher.Plugin.Calculator private static Engine MagesEngine; private const string Comma = ","; private const string Dot = "."; + private const string IcoPath = "Images/calculator.png"; internal static PluginInitContext Context { get; set; } = null!; @@ -73,7 +74,7 @@ namespace Flow.Launcher.Plugin.Calculator new Result { Title = Localize.flowlauncher_plugin_calculator_expression_not_complete(), - IcoPath = "Images/calculator.png" + IcoPath = IcoPath } }; } @@ -94,7 +95,7 @@ namespace Flow.Launcher.Plugin.Calculator new Result { Title = newResult, - IcoPath = "Images/calculator.png", + IcoPath = IcoPath, Score = 300, SubTitle = Localize.flowlauncher_plugin_calculator_copy_number_to_clipboard(), CopyText = newResult, @@ -123,7 +124,7 @@ namespace Flow.Launcher.Plugin.Calculator new Result { Title = Localize.flowlauncher_plugin_calculator_expression_not_complete(), - IcoPath = "Images/calculator.png" + IcoPath = IcoPath } }; }