When recharging from below Critical Percentage, spams dialog boxes
I've not given the Battery Monitor plugin a command to run for either Low Battery or Critical levels, and when I restore my laptop from a battery-level triggered Suspend (triggered by xfce4-power-manager), if the battery level is still below the Critical level I set in the panel plugin, it will continuously spam warning dialog boxes while the battery is charging back up, even if I don't interact with the dialogs.
Steps to reproduce:
- Set xfce4-power-manager to Suspend on 7% battery level.
- Set xfce4-battery-plugin's Critical percentage to 8%.
- Set the plugin's action to "Display a warning message".
- Do not give the plugin a command to run when the battery is at the Critical level.
- Run the laptop's battery down until it Suspends itself.
- Plug the charger in.
- Turn the laptop back on immediately after the laptop's hardware lights say it's charging again.
- Does not show any warning dialog boxes because the battery is charging, and will eventually exceed the charge levels for both Critical and Warn levels.
What happens instead:
- The Critical level warning dialog boxes stack up every thirty seconds until the battery's charged past the Critical level.
I'm running XUbuntu 20.04, with the following version numbers:
- xfce4-battery-plugin: 1.1.3-1
- xfce4-power-manager: 1.6.6-1