1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Platform: Remove compatibility checks for macOS 10.9

This commit is contained in:
reuk 2024-07-01 17:13:37 +01:00
parent da8c5fdcb4
commit 6d4bf60330
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
8 changed files with 82 additions and 135 deletions

View file

@ -42,15 +42,13 @@ class ScopedLowPowerModeDisabler::Pimpl
public:
Pimpl()
{
if (@available (macOS 10.9, *))
activity = [[NSProcessInfo processInfo] beginActivityWithOptions: NSActivityUserInitiatedAllowingIdleSystemSleep
reason: @"App must remain in high-power mode"];
activity = [[NSProcessInfo processInfo] beginActivityWithOptions: NSActivityUserInitiatedAllowingIdleSystemSleep
reason: @"App must remain in high-power mode"];
}
~Pimpl()
{
if (@available (macOS 10.9, *))
[[NSProcessInfo processInfo] endActivity: activity];
[[NSProcessInfo processInfo] endActivity: activity];
}
private: