mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge pull request #317 from jorgenbele/master
fix(battery): change comparison expr. to assignment
This commit is contained in:
commit
37f87be9dd
@ -95,7 +95,7 @@ const std::tuple<uint8_t, uint32_t, std::string> waybar::modules::Battery::getIn
|
|||||||
}
|
}
|
||||||
uint16_t capacity = total / batteries_.size();
|
uint16_t capacity = total / batteries_.size();
|
||||||
if (status == "Charging" && total_current != 0) {
|
if (status == "Charging" && total_current != 0) {
|
||||||
status == "Plugged";
|
status = "Plugged";
|
||||||
}
|
}
|
||||||
return {capacity, total_current, status};
|
return {capacity, total_current, status};
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user