From c585ca04ba61ed4a239b682319deca9fd7fe001f Mon Sep 17 00:00:00 2001 From: Burrit0z Date: Tue, 28 Apr 2020 17:36:00 -0400 Subject: [PATCH] w --- Kai.xm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kai.xm b/Kai.xm index 4429d39..c34ae01 100644 --- a/Kai.xm +++ b/Kai.xm @@ -90,7 +90,6 @@ CGRect originalBattery; setFrame = YES; batteryWidget = self; } - [self KaiUpdate]; } %new @@ -124,8 +123,9 @@ CGRect originalBattery; } -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context{ - NSLog(@"It works"); + dispatch_async(dispatch_get_main_queue(), ^{ [[NSNotificationCenter defaultCenter] postNotificationName:@"KaiInfoChanged" object:nil userInfo:nil]; + }); } %end \ No newline at end of file