diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 7e520175e..70d11dadd 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -23,7 +23,7 @@ namespace Flow.Launcher.Plugin private string _copyText = string.Empty; - private string _badgePath; + private string _badgeIcoPath; /// /// The title of the result. This is always required. @@ -92,9 +92,9 @@ namespace Flow.Launcher.Plugin /// /// Can be a local file path or a URL. /// If null or empty, will use plugin icon - public string BadgePath + public string BadgeIcoPath { - get => _badgePath; + get => _badgeIcoPath; set { // As a standard this property will handle prepping and converting to absolute local path for icon image processing @@ -105,11 +105,11 @@ namespace Flow.Launcher.Plugin && !value.StartsWith("https://", StringComparison.OrdinalIgnoreCase) && !value.StartsWith("data:image", StringComparison.OrdinalIgnoreCase)) { - _badgePath = Path.Combine(PluginDirectory, value); + _badgeIcoPath = Path.Combine(PluginDirectory, value); } else { - _badgePath = value; + _badgeIcoPath = value; } } } @@ -279,7 +279,7 @@ namespace Flow.Launcher.Plugin CopyText = CopyText, AutoCompleteText = AutoCompleteText, IcoPath = IcoPath, - BadgePath = BadgePath, + BadgeIcoPath = BadgeIcoPath, RoundedIcon = RoundedIcon, Icon = Icon, BadgeIcon = BadgeIcon, diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 38efca72b..0abd14ec5 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1286,9 +1286,9 @@ namespace Flow.Launcher.ViewModel foreach (var result in results) { - if (string.IsNullOrEmpty(result.BadgePath)) + if (string.IsNullOrEmpty(result.BadgeIcoPath)) { - result.BadgePath = plugin.Metadata.IcoPath; + result.BadgeIcoPath = plugin.Metadata.IcoPath; } }