remove debug print and nospace format fix

This commit is contained in:
FelixKratz 2021-09-27 21:51:56 +02:00
parent 1840deab3b
commit eedd84e98b
2 changed files with 1 additions and 2 deletions

View file

@ -255,7 +255,7 @@ void bar_item_serialize(struct bar_item* bar_item, FILE* rsp) {
"\t},\n"
"\t\"geometry\": {\n"
"\t\t\"position\": \"%c\",\n"
"\t\t\"nospace\": \"%d\",\n"
"\t\t\"nospace\": %d,\n"
"\t\t\"background_padding_left\": %d,\n"
"\t\t\"background_padding_right\": %d,\n"
"\t\t\"icon_padding_left\": %d,\n"

View file

@ -368,7 +368,6 @@ static void message_parse_set_message_for_bar_item(FILE* rsp, struct bar_item* b
struct token property = get_token(&message);
if (token_equals(property, COMMAND_SET_ICON)) {
printf("Message: %s \n", message);
needs_update = text_set_string(&bar_item->icon, token_to_string(get_token(&message)), false);
} else if (token_equals(property, COMMAND_SET_LABEL)) {
needs_update = text_set_string(&bar_item->label, token_to_string(get_token(&message)), false);