mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 21:38:27 +01:00
update power management
This commit is contained in:
17
MediaBrowser.ServerApplication/Native/PowerManagement.cs
Normal file
17
MediaBrowser.ServerApplication/Native/PowerManagement.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using MediaBrowser.Model.System;
|
||||
|
||||
namespace MediaBrowser.ServerApplication.Native
|
||||
{
|
||||
public class PowerManagement : IPowerManagement
|
||||
{
|
||||
public void PreventSystemStandby()
|
||||
{
|
||||
MainStartup.Invoke(Standby.PreventSleep);
|
||||
}
|
||||
|
||||
public void AllowSystemStandby()
|
||||
{
|
||||
MainStartup.Invoke(Standby.AllowSleep);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -139,16 +139,6 @@ namespace MediaBrowser.ServerApplication.Native
|
||||
return new NetworkManager(logger);
|
||||
}
|
||||
|
||||
public void PreventSystemStandby()
|
||||
{
|
||||
MainStartup.Invoke(Standby.PreventSleep);
|
||||
}
|
||||
|
||||
public void AllowSystemStandby()
|
||||
{
|
||||
MainStartup.Invoke(Standby.AllowSleep);
|
||||
}
|
||||
|
||||
public FFMpegInstallInfo GetFfmpegInstallInfo()
|
||||
{
|
||||
var info = new FFMpegInstallInfo();
|
||||
|
||||
Reference in New Issue
Block a user