mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-30 07:10:22 +00:00
fix freeze on reordering unknown item
This commit is contained in:
parent
df0017d277
commit
64c522eb45
1 changed files with 6 additions and 1 deletions
|
@ -427,7 +427,12 @@ static void handle_domain_order(FILE* rsp, struct token domain, char* message) {
|
|||
struct token name = get_token(&message);
|
||||
while (name.text && name.length > 0) {
|
||||
int index = bar_manager_get_item_index_for_name(&g_bar_manager, name.text);
|
||||
if (index < 0) continue;
|
||||
if (index < 0) {
|
||||
fprintf(rsp, "Item: %s does not exist in bar items.\n", name.text);
|
||||
printf("Item: %s does not exist in bar items.\n", name.text);
|
||||
name = get_token(&message);
|
||||
continue;
|
||||
}
|
||||
ordering[count] = g_bar_manager.bar_items[index];
|
||||
count++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue