mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 11:53:02 +00:00
fixes #99
This commit is contained in:
parent
8b7c82f4ed
commit
7109724111
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ void custom_events_init(struct custom_events* custom_events) {
|
|||
|
||||
|
||||
void custom_events_append(struct custom_events* custom_events, char* name, char* notification) {
|
||||
if (custom_events_get_flag_for_name(custom_events, name) > 0) return;
|
||||
custom_events->count++;
|
||||
custom_events->events = (struct custom_event**) realloc(custom_events->events, sizeof(struct custom_event*) * custom_events->count);
|
||||
custom_events->events[custom_events->count - 1] = custom_event_create();
|
||||
|
|
Loading…
Reference in a new issue