entry-directories: Only log about invalidations if it was handled
Jasper St. Pierre authored 10 years ago
Clement Lefebvre committed 6 years ago
536 | 536 | |
537 | 537 | char *basename; |
538 | 538 | char *dirname; |
539 | ||
540 | menu_verbose ("'%s' notified of '%s' %s - invalidating cache\n", | |
541 | dir->name, | |
542 | path, | |
543 | event == MENU_MONITOR_EVENT_CREATED ? ("created") : | |
544 | event == MENU_MONITOR_EVENT_DELETED ? ("deleted") : ("changed")); | |
545 | 539 | |
546 | 540 | dirname = g_path_get_dirname (path); |
547 | 541 | basename = g_path_get_basename (path); |
646 | 640 | |
647 | 641 | if (handled) |
648 | 642 | { |
643 | menu_verbose ("'%s' notified of '%s' %s - invalidating cache\n", | |
644 | dir->name, | |
645 | path, | |
646 | event == MENU_MONITOR_EVENT_CREATED ? ("created") : | |
647 | event == MENU_MONITOR_EVENT_DELETED ? ("deleted") : ("changed")); | |
648 | ||
649 | 649 | /* CHANGED events don't change the set of desktop entries, unless it's the mimeinfo.cache file changing */ |
650 | 650 | if (retry_changes || (event == MENU_MONITOR_EVENT_CREATED || event == MENU_MONITOR_EVENT_DELETED)) |
651 | 651 | { |