Commit 35ecf06f authored by Michael Natterer's avatar Michael Natterer 😴

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.
parent afe0c794
......@@ -138,12 +138,15 @@ gimp_action_history_init (Gimp *gimp)
break;
}
history.items =
g_list_insert_sorted (history.items,
gimp_action_history_item_new (action_name, count),
(GCompareFunc) gimp_action_history_init_compare_func);
if (! gimp_action_history_excluded_action (action_name))
{
history.items =
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment