Commit Graph

10 Commits

Author SHA1 Message Date
bb190409de fix: unable to disable upower's tooltip 2025-07-22 13:09:33 +01:00
e32a678478 Hide upower module when specified device disconnected 2025-02-05 00:02:29 +03:00
9b5c2dc7ed 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 d2a719d67c ("Redo to minimize code duplication.")
Fixes #3267
2024-08-31 20:44:29 +02:00
d2a719d67c Redo to minimize code duplication. 2024-05-16 12:37:53 +02:00
28ef5b7db2 Fix formatting 2024-05-14 10:21:24 +02:00
6413f25b8d Add config option to select UPower device based on device model. 2024-05-14 10:13:22 +02:00
3c075bcc53 Fixed formatting 2024-05-14 08:26:44 +02:00
ba8a88acfb Do not try to compare a string that may be a null-pointer 2024-05-14 08:16:10 +02:00
5fe99ea0e1 Upower. Fix segmentation fault
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2024-05-10 00:00:47 +03:00
2ead1bbf84 Upower refactoring (#3220)
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2024-05-07 10:29:52 +02:00