You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Associated pull request #546.
For some unknown reason, it is not passing the "Ubuntu" styles. I assume something else must be wrong in the ubuntu construction, as the file modified is in the Windows side.
Hello,
I have noticed that battery.status['isCharging'] was false in my computer while it was connected.
The problem is related to line 22 in file https://github.com/kivy/plyer/blob/master/plyer/platforms/win/battery.py
The problem is that "BatteryFlag" is actually a byte composed of multiple bits, see..
https://docs.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-system_power_status
so if multiple conditions apply, previous value would tend to be false... (in my case it was 'low battery' and 'charging') :-)
So my proposal is to consider somethin like
However, that would still generate issues when BatteryFlag is 255 (Unknown)... so maybe...
There are multiple options to handle this case... :-)
Keep up!!
The text was updated successfully, but these errors were encountered: