Merge pull request #1780 from Flow-Launcher/fix_active_explorer_path

Add slash to active explorer path return string
This commit is contained in:
Jeremy Wu 2023-01-11 08:06:28 +11:00 committed by GitHub
commit 53b6ac564a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ namespace Flow.Launcher.Infrastructure
{
var explorerWindow = GetActiveExplorer();
string locationUrl = explorerWindow?.LocationURL;
return !string.IsNullOrEmpty(locationUrl) ? new Uri(locationUrl).LocalPath : null;
return !string.IsNullOrEmpty(locationUrl) ? new Uri(locationUrl).LocalPath + "\\" : null;
}
/// <summary>