1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-01 20:26:47 +00:00

Update Kai.h

This commit is contained in:
2020-12-31 10:29:03 -05:00
parent dfe38157b1
commit 4e971ed592

3
Kai.h
View File

@ -149,11 +149,12 @@ static void preferencesChanged() {
static void applyPrefs() { static void applyPrefs() {
preferencesChanged(); preferencesChanged();
Class cls = kCFCoreFoundationVersionNumber > 1600 ? ([objc_getClass("CSAdjunctListView") class]) : ([objc_getClass("SBDashBoardAdjunctListView") class]);
isUpdating = YES; isUpdating = YES;
[[KAIBatteryPlatter sharedInstance] refreshForPrefs]; // so hard (not) [[KAIBatteryPlatter sharedInstance] refreshForPrefs]; // so hard (not)
[(CSAdjunctListView *)([KAIBatteryPlatter sharedInstance].superview.superview) _layoutStackView]; [cls reorderKai];
[[NSNotificationCenter defaultCenter] postNotificationName:@"KaiResetOffset" object:nil userInfo:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:@"KaiResetOffset" object:nil userInfo:nil];
isUpdating = NO; isUpdating = NO;