valr / cbatticon

A lightweight and fast battery icon that sits in your system tray
GNU General Public License v2.0
168 stars 40 forks source link

Cache last found number of power supplies #37

Closed codemac closed 7 years ago

codemac commented 7 years ago

Cache the last found number of power supplies so that changes in the number of power supplies are detected correctly. This maintains the old behavior of also being true if the number of total power supplies stays the same, but the one that the current cbatticon process is meant to get changes.

https://github.com/valr/cbatticon/issues/30

Issue #30 should be fixed by this change

Signed-off-by: Jeff Mickey j@codemac.net

valr commented 7 years ago

@codemac: Thanks a lot for the fix, highly appreciated!