forked from external/yambar
particle/string: tags_expand_template() now returns NULL if template is NULL
This commit is contained in:
parent
6857b99c56
commit
7da09530b8
1 changed files with 1 additions and 3 deletions
|
@ -87,9 +87,7 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
|
||||||
e->font = p->font;
|
e->font = p->font;
|
||||||
e->foreground = p->foreground;
|
e->foreground = p->foreground;
|
||||||
|
|
||||||
char *on_click = particle->on_click_template != NULL
|
char *on_click = tags_expand_template(particle->on_click_template, tags);
|
||||||
? tags_expand_template(particle->on_click_template, tags)
|
|
||||||
: NULL;
|
|
||||||
|
|
||||||
struct exposable *exposable = exposable_common_new(particle, on_click);
|
struct exposable *exposable = exposable_common_new(particle, on_click);
|
||||||
exposable->private = e;
|
exposable->private = e;
|
||||||
|
|
Loading…
Add table
Reference in a new issue