mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-13 23:27:14 +00:00
Fix json output when bar has no items
This commit is contained in:
parent
fc3db286b7
commit
bbf45f7230
1 changed files with 1 additions and 1 deletions
|
@ -452,6 +452,6 @@ void bar_manager_serialize(struct bar_manager* bar_manager, FILE* rsp) {
|
|||
for (int i = 0; i < bar_manager->bar_item_count; i++) {
|
||||
fprintf(rsp, "\t\t \"%s\"", bar_manager->bar_items[i]->name);
|
||||
if (i < bar_manager->bar_item_count - 1) fprintf(rsp, ",\n");
|
||||
else fprintf(rsp, "\n\t]\n}\n");
|
||||
}
|
||||
fprintf(rsp, "\n\t]\n}\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue