From 0f5f0971c51cc0af7169d9c5903b1c7e696ce8c7 Mon Sep 17 00:00:00 2001 From: Alexander Yee Date: Sun, 24 Nov 2024 17:48:57 -0800 Subject: [PATCH] Fix build. --- .../Source/CommonFramework/Environment/SystemSleep_Apple.tpp | 5 +++++ .../Options/Environment/SleepSuppressOption.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SerialPrograms/Source/CommonFramework/Environment/SystemSleep_Apple.tpp b/SerialPrograms/Source/CommonFramework/Environment/SystemSleep_Apple.tpp index d1b13e336..c59c1d04e 100644 --- a/SerialPrograms/Source/CommonFramework/Environment/SystemSleep_Apple.tpp +++ b/SerialPrograms/Source/CommonFramework/Environment/SystemSleep_Apple.tpp @@ -118,6 +118,11 @@ void AppleSleepController::update_state(){ } +SystemSleepController& SystemSleepController::instance(){ + static AppleSleepController controller; + return controller; +} + diff --git a/SerialPrograms/Source/CommonFramework/Options/Environment/SleepSuppressOption.cpp b/SerialPrograms/Source/CommonFramework/Options/Environment/SleepSuppressOption.cpp index 79b993407..c67e9f5a8 100644 --- a/SerialPrograms/Source/CommonFramework/Options/Environment/SleepSuppressOption.cpp +++ b/SerialPrograms/Source/CommonFramework/Options/Environment/SleepSuppressOption.cpp @@ -15,7 +15,7 @@ SleepSuppressOption::SleepSuppressOption(std::string label, SleepSuppress defaul { {SleepSuppress::NONE, "none", "Do not suppress sleep or screensaver."}, #ifdef PA_ENABLE_SLEEP_SUPPRESS_NO_SLEEP - {SleepSuppress::NO_SLEEP, "no-sleep", "Prevent computer from sleeping."}, + {SleepSuppress::NO_SLEEP, "no-sleep", "Prevent computer from sleeping, but allow screen to turn off."}, #endif {SleepSuppress::SCREEN_ON, "screen-on", "Keep the screen on."}, },