Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

fix/upower: upower module selection with multiple devices

Open 3u13r opened this issue 1 year ago • 0 comments

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 d2a719d67c5427dffc3e431c41b96b60399576e6 ("Redo to minimize code duplication.") Fixes #3267

3u13r avatar Aug 31 '24 18:08 3u13r