mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 20:13:49 -07:00
output valid json when there are no clients
This commit is contained in:
@@ -102,7 +102,8 @@ R"#({
|
||||
}
|
||||
|
||||
// remove trailing comma
|
||||
result.pop_back();
|
||||
if (result != "[")
|
||||
result.pop_back();
|
||||
|
||||
result += "]";
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user