diff options
author | sr55 <[email protected]> | 2018-12-16 16:55:26 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2018-12-16 16:55:26 +0000 |
commit | 4add7b2bec6c9d3a916bd103a365631c25b7c2b1 (patch) | |
tree | 914ecc4f136f159be9860f1f7b9b802e10ab5a14 /win/CS/HandBrakeWPF | |
parent | d2ab2122b26cd97961887ae1228692ade5e647f7 (diff) |
WinGui: Quick Fix of shutdown option for German translation.
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/PrePostActionService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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<string>(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;
}
|