diff options
author | sr55 <[email protected]> | 2018-07-25 21:13:35 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-07-25 21:13:35 +0100 |
commit | 3e942937d7deb873df6f777d748f791e5fb95a05 (patch) | |
tree | e0a5ae2f0211d04f7e1060bd7258a5e2456cc17f /win/CS/HandBrakeWPF/App.xaml.cs | |
parent | 36a02cd7b681f51d340f3ca84bd19f6aa233f9dc (diff) |
WinGui: Make the error message nicer when the system clipboard is unavailable. #1498
Diffstat (limited to 'win/CS/HandBrakeWPF/App.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/App.xaml.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs index a3809bea7..60b1bf10e 100644 --- a/win/CS/HandBrakeWPF/App.xaml.cs +++ b/win/CS/HandBrakeWPF/App.xaml.cs @@ -19,6 +19,7 @@ namespace HandBrakeWPF using Caliburn.Micro;
using HandBrakeWPF.Helpers;
+ using HandBrakeWPF.Services.Interfaces;
using HandBrakeWPF.Startup;
using HandBrakeWPF.Utilities;
using HandBrakeWPF.ViewModels;
@@ -175,9 +176,10 @@ namespace HandBrakeWPF try
{
IWindowManager windowManager = IoC.Get<IWindowManager>();
+ IErrorService errorService = IoC.Get<IErrorService>();
if (windowManager != null)
{
- ErrorViewModel errorView = new ErrorViewModel();
+ ErrorViewModel errorView = new ErrorViewModel(errorService);
GeneralApplicationException applicationException = null;
if (exception.GetType() == typeof(GeneralApplicationException))
{
|