perf: guaranty app nap is not interfering
This commit is contained in:
1 parent
e208da91da
commit
4895ee797f
1 file changed
+3
@@ -5,6 +5,9 @@ import ShortcutRecorder
|
||||
|
||||
let cgsMainConnectionId = CGSMainConnectionID()
|
||||
|
||||
var activity = ProcessInfo.processInfo.beginActivity(options: .userInitiatedAllowingIdleSystemSleep,
|
||||
reason: "Prevent App Nap to preserve responsiveness")
|
||||
|
||||
class App: AppCenterApplication, NSApplicationDelegate {
|
||||
static let name = Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as! String
|
||||
static let id = Bundle.main.object(forInfoDictionaryKey: "CFBundleIdentifier") as! String
|
||||
|
||||
Reference in new issue
Block a user