clang-format
This commit is contained in:
parent
a2925fa5da
commit
acf6611098
|
@ -484,9 +484,8 @@ void Workspaces::onWindowTitleEvent(std::string const &payload) {
|
||||||
void Workspaces::updateWindowCount() {
|
void Workspaces::updateWindowCount() {
|
||||||
const Json::Value workspacesJson = gIPC->getSocket1JsonReply("workspaces");
|
const Json::Value workspacesJson = gIPC->getSocket1JsonReply("workspaces");
|
||||||
for (auto &workspace : m_workspaces) {
|
for (auto &workspace : m_workspaces) {
|
||||||
auto workspaceJson = std::find_if(
|
auto workspaceJson =
|
||||||
workspacesJson.begin(), workspacesJson.end(),
|
std::find_if(workspacesJson.begin(), workspacesJson.end(), [&](Json::Value const &x) {
|
||||||
[&](Json::Value const &x) {
|
|
||||||
return x["name"].asString() == workspace->name() ||
|
return x["name"].asString() == workspace->name() ||
|
||||||
(workspace->isSpecial() && x["name"].asString() == "special:" + workspace->name());
|
(workspace->isSpecial() && x["name"].asString() == "special:" + workspace->name());
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue