Skip to content

Commit 0f5f097

Browse files
committed
Fix build.
1 parent 059e997 commit 0f5f097

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

SerialPrograms/Source/CommonFramework/Environment/SystemSleep_Apple.tpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ void AppleSleepController::update_state(){
118118
}
119119

120120

121+
SystemSleepController& SystemSleepController::instance(){
122+
static AppleSleepController controller;
123+
return controller;
124+
}
125+
121126

122127

123128

SerialPrograms/Source/CommonFramework/Options/Environment/SleepSuppressOption.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SleepSuppressOption::SleepSuppressOption(std::string label, SleepSuppress defaul
1515
{
1616
{SleepSuppress::NONE, "none", "Do not suppress sleep or screensaver."},
1717
#ifdef PA_ENABLE_SLEEP_SUPPRESS_NO_SLEEP
18-
{SleepSuppress::NO_SLEEP, "no-sleep", "Prevent computer from sleeping."},
18+
{SleepSuppress::NO_SLEEP, "no-sleep", "Prevent computer from sleeping, but allow screen to turn off."},
1919
#endif
2020
{SleepSuppress::SCREEN_ON, "screen-on", "Keep the screen on."},
2121
},

0 commit comments

Comments
 (0)