From: sr55 Date: Sun, 16 Dec 2018 16:55:26 +0000 (+0000) Subject: WinGui: Quick Fix of shutdown option for German translation. X-Git-Tag: 1.2.0~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4add7b2bec6c9d3a916bd103a365631c25b7c2b1;p=handbrake WinGui: Quick Fix of shutdown option for German translation. --- diff --git a/win/CS/HandBrakeWPF/Services/PrePostActionService.cs b/win/CS/HandBrakeWPF/Services/PrePostActionService.cs index f0d9a7125..b11c814ba 100644 --- a/win/CS/HandBrakeWPF/Services/PrePostActionService.cs +++ b/win/CS/HandBrakeWPF/Services/PrePostActionService.cs @@ -20,6 +20,7 @@ namespace HandBrakeWPF.Services using HandBrake.Interop.Utilities; using HandBrakeWPF.EventArgs; + using HandBrakeWPF.Properties; using HandBrakeWPF.Services.Interfaces; using HandBrakeWPF.Services.Queue.Interfaces; using HandBrakeWPF.Utilities; @@ -161,23 +162,28 @@ namespace HandBrakeWPF.Services switch (this.userSettingService.GetUserSetting(UserSettingConstants.WhenCompleteAction)) { case "Shutdown": + case "Herunterfahren": ProcessStartInfo shutdown = new ProcessStartInfo("Shutdown", "-s -t 60"); shutdown.UseShellExecute = false; Process.Start(shutdown); break; case "Log off": + case "Ausloggen": Win32.ExitWindowsEx(0, 0); break; case "Suspend": Application.SetSuspendState(PowerState.Suspend, true, true); break; case "Hibernate": + case "Ruhezustand": Application.SetSuspendState(PowerState.Hibernate, true, true); break; case "Lock System": + case "System sperren": Win32.LockWorkStation(); break; case "Quit HandBrake": + case "HandBrake beenden": Execute.OnUIThread(() => System.Windows.Application.Current.Shutdown()); break; }