Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From cc9a12bfc0561ea8a101575c0644087386233f53 Mon Sep 17 00:00:00 2001
- From: AntiCat <github@anticat.ch>
- Date: Tue, 24 Sep 2019 21:29:56 +0000
- Subject: [PATCH] AppNap: Debug state transistions
- ---
- client/util_darwin.m | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
- diff --git a/client/util_darwin.m b/client/util_darwin.m
- index a22ac54f..adc6d5a0 100644
- --- a/client/util_darwin.m
- +++ b/client/util_darwin.m
- @@ -20,7 +20,7 @@ static id activity = nil;
- #if defined(MAC_OS_X_VERSION_10_10)
- void disableAppNap(const char* reason) {
- if(activity == nil) {
- - //NSLog(@"disableAppNap: %@", @(reason));
- + NSLog(@"disableAppNap: %@", @(reason));
- activity = [[NSProcessInfo processInfo] beginActivityWithOptions:NSActivityBackground reason:@(reason)];
- [activity retain];
- }
- @@ -28,7 +28,7 @@ void disableAppNap(const char* reason) {
- void enableAppNap() {
- if(activity != nil) {
- - //NSLog(@"enableAppNap");
- + NSLog(@"enableAppNap");
- [[NSProcessInfo processInfo] endActivity:activity];
- [activity release];
- activity = nil;
- --
- 2.23.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement