// Only convert relative paths if its a valid path

This commit is contained in:
Garulf 2022-10-07 10:51:21 -04:00
parent 5c33b0d590
commit b7900b22b0

View file

@ -58,7 +58,13 @@ namespace Flow.Launcher.Plugin
{
if (!string.IsNullOrEmpty(PluginDirectory) && !Path.IsPathRooted(value))
{
_icoPath = Path.Combine(value, IcoPath);
string absPath = Path.Combine(value, IcoPath);
// Only convert relative paths if its a valid path
if (File.Exists(absPath))
{
_icoPath = Path.Combine(value, IcoPath);
}
}
else
{