Skip to content

Scheduler: Add option to skip when not charging - #604

Merged
d4rken merged 3 commits into
d4rken-org:mainfrom
MithicSpirit:main
Sep 2, 2023
Merged

Scheduler: Add option to skip when not charging#604
d4rken merged 3 commits into
d4rken-org:mainfrom
MithicSpirit:main

Conversation

@MithicSpirit

Copy link
Copy Markdown
Contributor

Creates a scheduler setting for skipping scheduled tasks when the device is not charging. The option is added to the "Scheduler" submenu in the settings, right under "Skip on low battery", using the icon 󰚦.

The check for this setting is done immediately after that for skipping on low battery.

Closes #564.

Closes d4rken-org#564.

Please note that this commit is still untested (I have to set up the
Android SDK).
Default to disabled and fix settings icon appearance.
Removed extraneous spacing and EOL-at-EOF.

@d4rken d4rken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry mate, that wasn't nice of me to keep you waiting for so long ☹️. The PR looks great, good code.

I assume you tested the feature on your device?

@d4rken
d4rken enabled auto-merge (rebase) September 2, 2023 19:19
@d4rken
d4rken disabled auto-merge September 2, 2023 19:20
@d4rken
d4rken merged commit 71004ac into d4rken-org:main Sep 2, 2023
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.

Abort scheduled tasks if not plugged in

2 participants