Skip to content

Commit b6f09c8

Browse files
caffeinate on 'activateOnLaunch'
1 parent 1f8673f commit b6f09c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Espresso/ApplicationController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ final class ApplicationController: NSObject {
6060
let prefs = PreferenceManager()
6161
// Check whether the user wants to launch caffeinate automatically.
6262
if prefs.activateOnLaunch {
63-
toggleStatus()
63+
caffeine.caffeinate()
6464
}
6565
if LoginHelper.willLaunchAtLogin(Bundle.main.bundleURL) {
6666
launchAtLogin.state = NSOnState

0 commit comments

Comments
 (0)