diff --git a/Program.cs b/Program.cs index 4e10b04..33f8d17 100644 --- a/Program.cs +++ b/Program.cs @@ -69,7 +69,7 @@ static void Main(string[] args) Verb = "open" }); - string publicPath = Environment.GetEnvironmentVariable("PUBLIC").Replace("\\","/"); + string publicPath = Environment.GetEnvironmentVariable("PUBLIC").Replace("\\", "/"); ShellWindows shellWindows = new ShellWindows(); @@ -80,7 +80,7 @@ static void Main(string[] args) Thread.Sleep(80); foreach (InternetExplorer window in shellWindows) { - if (window.Name == "File Explorer" && window.LocationURL == $"file:///{publicPath}") + if (window.LocationURL == $"file:///{publicPath}") { window.Navigate(Folder); windowFound = true; diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 4aa9419..80c78e0 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.1.0.0")] -[assembly: AssemblyFileVersion("2.1.0.0")] +[assembly: AssemblyVersion("2.1.1.0")] +[assembly: AssemblyFileVersion("2.1.1.0")]