diff --git a/12noon.LicenseManager/MainWindow.xaml.cs b/12noon.LicenseManager/MainWindow.xaml.cs index fe15381..ab65f77 100644 --- a/12noon.LicenseManager/MainWindow.xaml.cs +++ b/12noon.LicenseManager/MainWindow.xaml.cs @@ -72,6 +72,8 @@ private void NewIdButton_Click(object sender, RoutedEventArgs e) private void SelectAssemblyButton_Click(object sender, RoutedEventArgs e) { + string currentPath = TheLicenseManager.PathAssembly; + TheLicenseManager.PathAssembly = string.Empty; OpenFileDialog ofd = new() @@ -83,7 +85,7 @@ private void SelectAssemblyButton_Click(object sender, RoutedEventArgs e) Multiselect = false, Filter = "Assembly Files|*.exe;*.dll", DefaultExt = @".exe", - FileName = TheLicenseManager.PathAssembly, + FileName = currentPath, }; if (!ofd.ShowDialog().GetValueOrDefault())