summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/App.xaml.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-07-25 21:13:35 +0100
committersr55 <[email protected]>2018-07-25 21:13:35 +0100
commit3e942937d7deb873df6f777d748f791e5fb95a05 (patch)
treee0a5ae2f0211d04f7e1060bd7258a5e2456cc17f /win/CS/HandBrakeWPF/App.xaml.cs
parent36a02cd7b681f51d340f3ca84bd19f6aa233f9dc (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.cs4
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))
{