forked from enlightenment/enlightenment
clear menu cache when saving a menu file
force regeneration of menus after editing them ref T2271
This commit is contained in:
parent
ac9daa55fb
commit
e27a0cbeba
|
@ -1656,6 +1656,7 @@ _e_client_menu_cb_fav_add(void *data, E_Menu *m EINA_UNUSED, E_Menu_Item *mi EIN
|
||||||
efreet_menu_desktop_insert(menu, ec->desktop, -1);
|
efreet_menu_desktop_insert(menu, ec->desktop, -1);
|
||||||
efreet_menu_save(menu, buf);
|
efreet_menu_save(menu, buf);
|
||||||
efreet_menu_free(menu);
|
efreet_menu_free(menu);
|
||||||
|
e_int_menus_cache_clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -394,6 +394,7 @@ _save_menu(E_Config_Dialog_Data *cfdata)
|
||||||
}
|
}
|
||||||
ret = efreet_menu_save(menu, cfdata->data->filename);
|
ret = efreet_menu_save(menu, cfdata->data->filename);
|
||||||
efreet_menu_free(menu);
|
efreet_menu_free(menu);
|
||||||
|
e_int_menus_cache_clear();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -204,6 +204,7 @@ _btn_cb_del(void *data, void *data2 EINA_UNUSED)
|
||||||
ecore_file_unlink(file);
|
ecore_file_unlink(file);
|
||||||
e_widget_ilist_remove_num(cfdata->obj.list, x);
|
e_widget_ilist_remove_num(cfdata->obj.list, x);
|
||||||
}
|
}
|
||||||
|
e_int_menus_cache_clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue