systray_hide_by_icon_name if equal to 0 do nothing

This commit is contained in:
iflyun@gmail.com 2017-02-12 13:59:07 -08:00
parent 4c103423ba
commit 5e9791079d

View file

@ -590,7 +590,7 @@ gboolean add_icon(Window win)
char *token; char *token;
char *string; char *string;
string = strdup(systray_hide_icons); string = strdup(systray_hide_icons);
if (string != NULL) { if (string != NULL && string[0] != '0') {
while ((token = strsep(&string, ",")) != NULL) { while ((token = strsep(&string, ",")) != NULL) {
if (strcmp(token,name) == 0) { if (strcmp(token,name) == 0) {
if (strcmp(token,"") == 0) token = "empty name"; if (strcmp(token,"") == 0) token = "empty name";