Systray: warn on duplicate config option systray_name_filter (issue #652)
This commit is contained in:
parent
c4a0ec4140
commit
0e8a6dd961
1 changed files with 3 additions and 1 deletions
|
@ -1133,8 +1133,10 @@ void add_entry(char *key, char *value)
|
|||
} else if (strcmp(key, "systray_monitor") == 0) {
|
||||
systray_monitor = MAX(0, config_get_monitor(value));
|
||||
} else if (strcmp(key, "systray_name_filter") == 0) {
|
||||
if (systray_hide_name_filter)
|
||||
if (systray_hide_name_filter) {
|
||||
fprintf(stderr, "tint2: Error: duplicate option 'systray_name_filter'. Please use it only once. See https://gitlab.com/o9000/tint2/issues/652\n");
|
||||
free(systray_hide_name_filter);
|
||||
}
|
||||
systray_hide_name_filter = strdup(value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue