mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Replace hiberate with PInvoke
This commit is contained in:
parent
a065179d53
commit
3bd4ca4105
1 changed files with 1 additions and 6 deletions
|
|
@ -269,12 +269,7 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
IcoPath = "Images\\hibernate.png",
|
||||
Action= c =>
|
||||
{
|
||||
var info = ShellCommand.SetProcessStartInfo("shutdown", arguments:"/h");
|
||||
info.WindowStyle = ProcessWindowStyle.Hidden;
|
||||
info.UseShellExecute = true;
|
||||
|
||||
ShellCommand.Execute(info);
|
||||
|
||||
PInvoke.SetSuspendState(true, false, false);
|
||||
return true;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue