Skip to content

Commit

Permalink
Patch 1.0.1
Browse files Browse the repository at this point in the history
Removed the ability to close the application while the recovery process is running.
  • Loading branch information
Tornadocraver committed Oct 21, 2018
1 parent a389821 commit a4e57c2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion GoPro Video Recovery/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Windows;
using System.ComponentModel;
using System.Windows;

namespace GoPro_Video_Recovery
{
Expand All @@ -11,5 +12,13 @@ public MainWindow()
{
InitializeComponent();
}

protected override void OnClosing(CancelEventArgs e)
{
if (((MainPageViewModel)DataContext).Running)
e.Cancel = true;
else
base.OnClosing(e);
}
}
}

0 comments on commit a4e57c2

Please sign in to comment.