sysrich / tik

Transactional Installation Kit
MIT License
14 stars 10 forks source link

Added condition to check batteries for charging state #27

Closed piyr9 closed 5 months ago

piyr9 commented 5 months ago

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

piyr9 commented 5 months ago

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 commented 5 months ago

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

EDIT: Fixed

sysrich commented 5 months ago

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