From 4e971ed5926a08e195cd895d76cd35e344ef8d5f Mon Sep 17 00:00:00 2001 From: Burrit0z Date: Thu, 31 Dec 2020 10:29:03 -0500 Subject: [PATCH] Update Kai.h --- Kai.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kai.h b/Kai.h index 4840094..5054dc9 100755 --- a/Kai.h +++ b/Kai.h @@ -149,11 +149,12 @@ static void preferencesChanged() { static void applyPrefs() { preferencesChanged(); + Class cls = kCFCoreFoundationVersionNumber > 1600 ? ([objc_getClass("CSAdjunctListView") class]) : ([objc_getClass("SBDashBoardAdjunctListView") class]); isUpdating = YES; [[KAIBatteryPlatter sharedInstance] refreshForPrefs]; // so hard (not) - [(CSAdjunctListView *)([KAIBatteryPlatter sharedInstance].superview.superview) _layoutStackView]; + [cls reorderKai]; [[NSNotificationCenter defaultCenter] postNotificationName:@"KaiResetOffset" object:nil userInfo:nil]; isUpdating = NO;