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:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user