Merge pull request #42 from jjw24/merge_hibernation_function

Add hibernation feature Sys plugin from upstream Dev
This commit is contained in:
Jeremy Wu 2019-09-30 22:01:21 +10:00 committed by GitHub
commit ab4cc74aca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
@ -136,6 +136,13 @@ namespace Wox.Plugin.Sys
Action = c => FormsApplication.SetSuspendState(PowerState.Suspend, false, false)
},
new Result
{
Title = "Hibernate",
SubTitle = "Hibernate computer",
IcoPath = "Images\\sleep.png", // Icon change needed
Action = c => FormsApplication.SetSuspendState(PowerState.Hibernate, false, false)
},
new Result
{
Title = "Empty Recycle Bin",
SubTitle = context.API.GetTranslation("wox_plugin_sys_emptyrecyclebin"),