-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
30 lines (26 loc) · 944 Bytes
/
App.xaml.cs
File metadata and controls
30 lines (26 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Windows;
using VideoCutter.HelperClasses;
namespace VideoCutter
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
private void Application_Startup(object sender, StartupEventArgs e)
{
PreferencesHelper.LoadPrefs("preferences.xml");
var ffmpegNotFound = string.IsNullOrWhiteSpace(PreferencesHelper.ffmpegPath);
var ffprobeNotFound = string.IsNullOrWhiteSpace(PreferencesHelper.ffprobePath);
var ffplayNotFound = string.IsNullOrWhiteSpace(PreferencesHelper.ffplayPath);
if (ffmpegNotFound || ffprobeNotFound || ffplayNotFound)
{
FirstTimeSetup.AutoSetupFFMpeg();
}
}
private void Application_Exit(object sender, ExitEventArgs e)
{
PreferencesHelper.SavePrefs("preferences.xml");
}
}
}