mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
std::filesystem::path is a string representation
This commit is contained in:
parent
b39a8ede6c
commit
7f995507fe
@ -83,7 +83,7 @@ void waybar::modules::Battery::refreshBatteries() {
|
||||
if (!fs::is_directory(node)) {
|
||||
continue;
|
||||
}
|
||||
auto dir_name = node.path().filename().string();
|
||||
auto dir_name = node.path().filename();
|
||||
auto bat_defined = config_["bat"].isString();
|
||||
if (((bat_defined && dir_name == config_["bat"].asString()) || !bat_defined) &&
|
||||
(fs::exists(node.path() / "capacity") || fs::exists(node.path() / "charge_now")) &&
|
||||
|
Loading…
Reference in New Issue
Block a user