mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 23:09:51 +01:00
output valid json when there are no clients
This commit is contained in:
parent
aa7177a9e4
commit
206b7f4372
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,8 @@ R"#({
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove trailing comma
|
// remove trailing comma
|
||||||
result.pop_back();
|
if (result != "[")
|
||||||
|
result.pop_back();
|
||||||
|
|
||||||
result += "]";
|
result += "]";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue