Inspector: fix clean mode

Even if duplicate actions are removed, the delay should remain the same
between two actions, no matter how many actions have been removed
between.
This commit is contained in:
Daniel Zaoui 2018-10-31 09:10:43 +02:00
parent da73209747
commit 82cfa8378a
1 changed files with 6 additions and 2 deletions

View File

@ -1373,8 +1373,12 @@ main(int argc, char *argv[])
Eina_List *itr, *itr2;
EINA_LIST_FOREACH_SAFE(unit->actions, itr, itr2, act)
{
if (_is_hook_duplicate(act, eina_list_data_get(eina_list_prev(itr))))
unit->actions = eina_list_remove_list(unit->actions, itr);
Exactness_Action *prev_act = eina_list_data_get(eina_list_prev(itr));
if (_is_hook_duplicate(act, prev_act))
{
prev_act->delay_ms += act->delay_ms;
unit->actions = eina_list_remove_list(unit->actions, itr);
}
}
EINA_LIST_REVERSE_FOREACH_SAFE(unit->actions, itr, itr2, act)
{