Skip to content

Commit 9e3e0f6

Browse files
committed
Change name to BadgeIcoPath
1 parent b85c2f4 commit 9e3e0f6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class Result
2323

2424
private string _copyText = string.Empty;
2525

26-
private string _badgePath;
26+
private string _badgeIcoPath;
2727

2828
/// <summary>
2929
/// The title of the result. This is always required.
@@ -92,9 +92,9 @@ public string IcoPath
9292
/// </summary>
9393
/// <value>Can be a local file path or a URL.</value>
9494
/// <remarks>If null or empty, will use plugin icon</remarks>
95-
public string BadgePath
95+
public string BadgeIcoPath
9696
{
97-
get => _badgePath;
97+
get => _badgeIcoPath;
9898
set
9999
{
100100
// As a standard this property will handle prepping and converting to absolute local path for icon image processing
@@ -105,11 +105,11 @@ public string BadgePath
105105
&& !value.StartsWith("https://", StringComparison.OrdinalIgnoreCase)
106106
&& !value.StartsWith("data:image", StringComparison.OrdinalIgnoreCase))
107107
{
108-
_badgePath = Path.Combine(PluginDirectory, value);
108+
_badgeIcoPath = Path.Combine(PluginDirectory, value);
109109
}
110110
else
111111
{
112-
_badgePath = value;
112+
_badgeIcoPath = value;
113113
}
114114
}
115115
}
@@ -279,7 +279,7 @@ public Result Clone()
279279
CopyText = CopyText,
280280
AutoCompleteText = AutoCompleteText,
281281
IcoPath = IcoPath,
282-
BadgePath = BadgePath,
282+
BadgeIcoPath = BadgeIcoPath,
283283
RoundedIcon = RoundedIcon,
284284
Icon = Icon,
285285
BadgeIcon = BadgeIcon,

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,9 +1286,9 @@ async Task QueryTaskAsync(PluginPair plugin, CancellationToken token)
12861286

12871287
foreach (var result in results)
12881288
{
1289-
if (string.IsNullOrEmpty(result.BadgePath))
1289+
if (string.IsNullOrEmpty(result.BadgeIcoPath))
12901290
{
1291-
result.BadgePath = plugin.Metadata.IcoPath;
1291+
result.BadgeIcoPath = plugin.Metadata.IcoPath;
12921292
}
12931293
}
12941294

0 commit comments

Comments
 (0)