Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: upower module selection with multiple devices
While looping over all the upower devices, the currently set device that will be rendered in the waybar, is overridden. Since the loop doesn't end when the device is found, the upDevice_ is overridden with NULL in the iteration for the next device. Now we only override upDevice_ if the current device matches the constraints. Fixes d2a719d ("Redo to minimize code duplication.") Fixes #3267
- Loading branch information