Skip to content

Commit 336e51d

Browse files
committed
IcoPath to const string
1 parent c79e483 commit 336e51d

File tree

1 file changed

+4
-3
lines changed
  • Plugins/Flow.Launcher.Plugin.Calculator

1 file changed

+4
-3
lines changed

Plugins/Flow.Launcher.Plugin.Calculator/Main.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class Main : IPlugin, IPluginI18n, ISettingProvider
2020
private static Engine MagesEngine;
2121
private const string Comma = ",";
2222
private const string Dot = ".";
23+
private const string IcoPath = "Images/calculator.png";
2324

2425
internal static PluginInitContext Context { get; set; } = null!;
2526

@@ -73,7 +74,7 @@ public List<Result> Query(Query query)
7374
new Result
7475
{
7576
Title = Localize.flowlauncher_plugin_calculator_expression_not_complete(),
76-
IcoPath = "Images/calculator.png"
77+
IcoPath = IcoPath
7778
}
7879
};
7980
}
@@ -94,7 +95,7 @@ public List<Result> Query(Query query)
9495
new Result
9596
{
9697
Title = newResult,
97-
IcoPath = "Images/calculator.png",
98+
IcoPath = IcoPath,
9899
Score = 300,
99100
SubTitle = Localize.flowlauncher_plugin_calculator_copy_number_to_clipboard(),
100101
CopyText = newResult,
@@ -123,7 +124,7 @@ public List<Result> Query(Query query)
123124
new Result
124125
{
125126
Title = Localize.flowlauncher_plugin_calculator_expression_not_complete(),
126-
IcoPath = "Images/calculator.png"
127+
IcoPath = IcoPath
127128
}
128129
};
129130
}

0 commit comments

Comments
 (0)