Skip to content

Commit

Permalink
Merge pull request #21 from jimmyeao/dev
Browse files Browse the repository at this point in the history
Disable launch button whilst runnning
  • Loading branch information
jimmyeao authored Jan 28, 2024
2 parents e241629 + f2386a5 commit 997c01b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Elite Dangerous Addon Launcher V2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<RootNamespace>Elite_Dangerous_Addon_Launcher_V2</RootNamespace>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<AssemblyVersion>1.1.5.374</AssemblyVersion>
<FileVersion>1.1.5.374</FileVersion>
<AssemblyVersion>1.1.5.377</AssemblyVersion>
<FileVersion>1.1.5.377</FileVersion>
<ApplicationIcon>elite-dangerous-icon.ico</ApplicationIcon>
<PackageIcon>app.png</PackageIcon>
<PackageProjectUrl>https://github.com/jimmyeao/Elite-Dangerous-Addon-Launcher-V2</PackageProjectUrl>
Expand Down
2 changes: 2 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ private void Btn_Launch_Click(object sender, RoutedEventArgs e)
{
if (app.IsEnabled)
{
Btn_Launch.IsEnabled = false;
LaunchApp(app);
}
}
Expand Down Expand Up @@ -684,6 +685,7 @@ private void OnProfileChanged(Profile oldProfile, Profile newProfile)

private void ProcessExitHandler(object sender, EventArgs e) //triggered when EDLaunch exits
{
Btn_Launch.IsEnabled = true;
bool closeAllApps = false;
Application.Current.Dispatcher.Invoke(() =>
{
Expand Down

0 comments on commit 997c01b

Please sign in to comment.