这是indexloc提供的服务,不要输入任何密码
Skip to content

MacPowerAlert(Beta)

Latest
Compare
Choose a tag to compare
@TambuDT TambuDT released this 02 Jan 23:05
· 4 commits to main since this release

WHAT THIS VERSION INTRODUCES ?

Battery Notification Count Limitation

The BackgroundService now includes a feature to limit the number of notifications for both low and high battery levels. The counts are reset when the battery read condition are restored (plug unplug the charger).

Added Properties:
-lowBatteryNotificationCount: Tracks the number of low battery notifications.
-highBatteryNotificationCount: Tracks the number of high battery notifications.
Logic Implementation:
-For low battery notifications (battery level <= 20% and not charging):
The notification count is incremented only if it's less than 3.
The count is reset when the condition of reading are restored.
-For high battery notifications (battery level >= 80% and charging):
The notification count is incremented only if it's less than 3.
The count is reset when the condition of reading are restored.
This enhancement ensures that users receive a maximum of 3 notifications for both low and high battery levels, preventing excessive notifications when the battery stays outside the specified ranges.