Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
removed the preferences notification observer
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra authored and Alexandra committed Nov 23, 2022
1 parent 8a2ab84 commit 9c9d804
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Tweak/BatteryBuddy.m
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,4 @@ static void load_preferences() {

MSHookMessageEx(NSClassFromString(@"CSBatteryFillView"), @selector(didMoveToWindow), (IMP)&override_CSBatteryFillView_didMoveToWindow, (IMP *)&orig_CSBatteryFillView_didMoveToWindow);
}

CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)load_preferences, (CFStringRef)@"dev.traurige.batterybuddy.preferences.reload", NULL, (CFNotificationSuspensionBehavior)kNilOptions);
}

0 comments on commit 9c9d804

Please sign in to comment.