DOn't prepend pluginpath if IcoPath is a web URL

This commit is contained in:
Garulf 2022-08-30 01:51:31 -04:00 committed by Hongtao Zhang
parent ed107cc31e
commit 7f1b9d058e

View file

@ -135,7 +135,7 @@ namespace Flow.Launcher.Plugin
set
{
_pluginDirectory = value;
if (!string.IsNullOrEmpty(IcoPath) && !Path.IsPathRooted(IcoPath))
if (!string.IsNullOrEmpty(IcoPath) && !Path.IsPathRooted(IcoPath) && !IcoPath.StartsWith("http://") && !IcoPath.StartsWith("https://"))
{
IcoPath = Path.Combine(value, IcoPath);
}