瀏覽代碼

Use non-deprecated sleep assertion on OSX

I don't think it will change anything but the assertion we used
is deprecated going forward so it was worth switching for that reason
alone.
Tobias Hieta 8 年之前
父節點
當前提交
1ba816fffc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/power/PowerComponentMac.cpp

+ 1 - 1
src/power/PowerComponentMac.cpp

@@ -6,7 +6,7 @@ void PowerComponentMac::doDisableScreensaver()
   if (m_assertion == 0)
   {
     CFStringRef why = CFSTR("tv.plex.player");
-    IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep,
+    IOPMAssertionCreateWithName(kIOPMAssertionTypePreventUserIdleDisplaySleep,
                                 kIOPMAssertionLevelOn,
                                 why,
                                 &m_assertion);