Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added condition to check batteries for charging state #27

Merged
merged 10 commits into from
Jun 14, 2024

Conversation

piyr9
Copy link
Contributor

@piyr9 piyr9 commented Jun 3, 2024

Added condition to check batteries for charging state which would indicate they are connected to power, and removed the hard block so it would only warn the user if they are about to install via battery

…icate they are connected to power, and removed the hard block so it would only warn the user if they are about to install via battery
@piyr9
Copy link
Contributor Author

piyr9 commented Jun 4, 2024

I may need to rethink this if statement in the code, if they are on a laptop with AC off and discharging battery they may get 2 warnings instead of 1. I need to add a boolean statement here, so if in case either condition is satisfied, the msg will show up.

@piyr9 piyr9 marked this pull request as draft June 4, 2024 00:21
…icate they are connected to power, and removed the hard block so it would only warn the user if they are about to install via battery
@piyr9 piyr9 marked this pull request as ready for review June 4, 2024 04:47
@piyr9
Copy link
Contributor Author

piyr9 commented Jun 4, 2024

no idea why VSCodium truncated the proceedInstall() line, its missing a chunk.

EDIT: Fixed

@piyr9 piyr9 mentioned this pull request Jun 4, 2024
usr/lib/tik/modules/pre/10-welcome Outdated Show resolved Hide resolved
usr/lib/tik/modules/pre/10-welcome Outdated Show resolved Hide resolved
usr/lib/tik/modules/pre/10-welcome Outdated Show resolved Hide resolved
@sysrich
Copy link
Owner

sysrich commented Jun 10, 2024

I think I like it in this current form.. just not merging yet as I need some time to test it properly and that hasn't come up yet

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.

4 participants