mirror of https://github.com/hyprwm/Hyprland
Merge pull request #479 from rubyist/fix-json
output valid json when there are no clients
This commit is contained in:
commit
ccd68049f7
|
@ -102,7 +102,8 @@ R"#({
|
|||
}
|
||||
|
||||
// remove trailing comma
|
||||
result.pop_back();
|
||||
if (result != "[")
|
||||
result.pop_back();
|
||||
|
||||
result += "]";
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue