Skip to content

Add custom charge limit submenu with presets#444

Open
GuilhermeBianeck wants to merge 1 commit intoactuallymentor:mainfrom
GuilhermeBianeck:CustomLimit
Open

Add custom charge limit submenu with presets#444
GuilhermeBianeck wants to merge 1 commit intoactuallymentor:mainfrom
GuilhermeBianeck:CustomLimit

Conversation

@GuilhermeBianeck
Copy link

This PR introduces the ability for users to select a specific battery charge limit (e.g., 60%, 70%, 90%) directly from the menu bar app. Previously, the app was hardcoded to toggle only at 80%. The new "Set charge limit" submenu allows for granular control while maintaining the existing "Enable/Disable" workflow. + space removals Description
Feature Changes:

New Submenu: Added a "Set charge limit" menu containing presets: 60%, 70%, 75%, 80%, 90%, and 100%.
Dynamic Labels: The main "Enable" button now dynamically reads "Enable battery limit at X%" based on the user's selection.
Persistence: The selected charge limit is saved using electron-store and persists across app restarts.
Live Updates: Changing the limit while the limiter is active immediately restarts the background maintenance process at the new level.

This PR introduces the ability for users to select a specific battery charge limit (e.g., 60%, 70%, 90%) directly from the menu bar app. Previously, the app was hardcoded to toggle only at 80%. The new "Set charge limit" submenu allows for granular control while maintaining the existing "Enable/Disable" workflow. + space removals
Description
Feature Changes:

New Submenu: Added a "Set charge limit" menu containing presets: 60%, 70%, 75%, 80%, 90%, and 100%.
Dynamic Labels: The main "Enable" button now dynamically reads "Enable battery limit at X%" based on the user's selection.
Persistence: The selected charge limit is saved using electron-store and persists across app restarts.
Live Updates: Changing the limit while the limiter is active immediately restarts the background maintenance process at the new level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant