diff options
author | sr55 <[email protected]> | 2016-12-26 15:21:20 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-12-26 15:21:20 +0000 |
commit | d1376abc6678ab2b53b9b682493523263525b108 (patch) | |
tree | c8d5578b5089b1714253b880146646775e582eb5 /win/CS/HandBrakeWPF/App.xaml.cs | |
parent | 6b633b8f6b3f19433ca8a3d42affd737ca726f5d (diff) |
WinGui: Add support to make the windows UI more portable friendly. Configurable via portable.ini file. All temp, presets, settings, logs etc can be stored in a specific or current directory.
Diffstat (limited to 'win/CS/HandBrakeWPF/App.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/App.xaml.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs index 7f7d7ef47..73971ff08 100644 --- a/win/CS/HandBrakeWPF/App.xaml.cs +++ b/win/CS/HandBrakeWPF/App.xaml.cs @@ -66,6 +66,12 @@ namespace HandBrakeWPF StartupOptions.AutoRestartQueue = true;
}
+ // Portable Mode
+ if (Portable.IsPortable())
+ {
+ Portable.Initialise();
+ }
+
base.OnStartup(e);
// If we have a file dropped on the icon, try scanning it.
|