diff options
author | sr55 <[email protected]> | 2019-03-09 21:09:06 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-03-09 21:14:23 +0000 |
commit | 033edbf0ef660ec02f219d7ef429463d732015c0 (patch) | |
tree | 4e62ccefed9e711a4f8c1ec0c72e32dcc23e72d4 /win/CS/HandBrakeWPF/App.xaml.cs | |
parent | c332cf6f061948c2f03c908faca59fa05d1aead4 (diff) |
WinGui: Add some error checking into the Portable mode to guide users when there are problems with probable.ini
Diffstat (limited to 'win/CS/HandBrakeWPF/App.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/App.xaml.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs index e6b063eac..7aa538137 100644 --- a/win/CS/HandBrakeWPF/App.xaml.cs +++ b/win/CS/HandBrakeWPF/App.xaml.cs @@ -97,7 +97,11 @@ namespace HandBrakeWPF // Portable Mode
if (Portable.IsPortable())
{
- Portable.Initialise();
+ if(!Portable.Initialise())
+ {
+ Application.Current.Shutdown();
+ return;
+ }
}
// Setup the UI Language
|