mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:45:58 +01:00
Merge pull request #479 from rubyist/fix-json
output valid json when there are no clients
This commit is contained in:
commit
ccd68049f7
1 changed files with 2 additions and 1 deletions
|
@ -102,6 +102,7 @@ R"#({
|
|||
}
|
||||
|
||||
// remove trailing comma
|
||||
if (result != "[")
|
||||
result.pop_back();
|
||||
|
||||
result += "]";
|
||||
|
|
Loading…
Reference in a new issue