app: don't add blacklisted/excluded actions to the action history

gimp_action_history_init(): when deserializing the action history,
check each action against gimp_action_history_excluded_action() so
when we decide to exclude an action, it doesn't come back as history
zombie from disk.
This commit is contained in:
Michael Natterer
2018-01-13 21:26:27 +01:00
parent afe0c794e6
commit 35ecf06f56

View File

@ -138,12 +138,15 @@ gimp_action_history_init (Gimp *gimp)
break; break;
} }
history.items = if (! gimp_action_history_excluded_action (action_name))
g_list_insert_sorted (history.items, {
gimp_action_history_item_new (action_name, count), history.items =
(GCompareFunc) gimp_action_history_init_compare_func); g_list_insert_sorted (history.items,
gimp_action_history_item_new (action_name, count),
(GCompareFunc) gimp_action_history_init_compare_func);
n_items++; n_items++;
}
g_free (action_name); g_free (action_name);
} }