Merge pull request #4209 from notpeelz/fix-formatting
Fix CI clang-format
This commit is contained in:
@ -272,7 +272,7 @@ void waybar::modules::Network::worker() {
|
|||||||
|
|
||||||
const std::string waybar::modules::Network::getNetworkState() const {
|
const std::string waybar::modules::Network::getNetworkState() const {
|
||||||
#ifdef WANT_RFKILL
|
#ifdef WANT_RFKILL
|
||||||
if (rfkill_.getState()) return "disabled";
|
if (rfkill_.getState()) return "disabled";
|
||||||
#endif
|
#endif
|
||||||
if (ifid_ == -1) {
|
if (ifid_ == -1) {
|
||||||
return "disconnected";
|
return "disconnected";
|
||||||
|
@ -494,7 +494,7 @@ std::string Workspaces::trimWorkspaceName(std::string name) {
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_focused_recursive(const Json::Value& node) {
|
bool is_focused_recursive(const Json::Value &node) {
|
||||||
// If a workspace has a focused container then get_tree will say
|
// If a workspace has a focused container then get_tree will say
|
||||||
// that the workspace itself isn't focused. Therefore we need to
|
// that the workspace itself isn't focused. Therefore we need to
|
||||||
// check if any of its nodes are focused as well.
|
// check if any of its nodes are focused as well.
|
||||||
@ -504,13 +504,13 @@ bool is_focused_recursive(const Json::Value& node) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto& child : node["nodes"]) {
|
for (const auto &child : node["nodes"]) {
|
||||||
if (is_focused_recursive(child)) {
|
if (is_focused_recursive(child)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto& child : node["floating_nodes"]) {
|
for (const auto &child : node["floating_nodes"]) {
|
||||||
if (is_focused_recursive(child)) {
|
if (is_focused_recursive(child)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user