Skip to content

Commit

Permalink
Default to current assembly path.
Browse files Browse the repository at this point in the history
  • Loading branch information
skst committed May 14, 2024
1 parent 7ad65ec commit 2792ddd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 12noon.LicenseManager/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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())
Expand Down

0 comments on commit 2792ddd

Please sign in to comment.