mirror of
https://github.com/FelixKratz/SketchyBar
synced 2025-02-17 13:08:28 +00:00
nospace modifier available for all items
This commit is contained in:
parent
8c037b2dfe
commit
1e13c870d8
1 changed files with 3 additions and 6 deletions
|
@ -303,12 +303,7 @@ static void handle_domain_add(FILE* rsp, struct token domain, char* message) {
|
|||
if (strcmp(bar_item->identifier, BAR_COMPONENT_GRAPH) == 0) {
|
||||
struct token width = get_token(&message);
|
||||
graph_data_init(&bar_item->graph_data, token_to_uint32t(width));
|
||||
if (message != NULL) {
|
||||
struct token modifier = get_token(&message);
|
||||
if (token_equals(modifier, ARGUMENT_COMMON_NO_SPACE)) {
|
||||
bar_item->nospace = true;
|
||||
}
|
||||
}
|
||||
|
||||
bar_item->has_graph = true;
|
||||
}
|
||||
else if (strcmp(bar_item->identifier, BAR_COMPONENT_SPACE) == 0) {
|
||||
|
@ -325,6 +320,8 @@ static void handle_domain_add(FILE* rsp, struct token domain, char* message) {
|
|||
} else {
|
||||
printf("Command: %s not found \n", command.text);
|
||||
}
|
||||
struct token modifier = get_token(&message);
|
||||
if (token_equals(modifier, ARGUMENT_COMMON_NO_SPACE)) bar_item->nospace = true;
|
||||
bar_item->position = position.text[0];
|
||||
|
||||
bar_item_set_name(bar_item, string_copy(""));
|
||||
|
|
Loading…
Add table
Reference in a new issue