discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=e27a0cbeba1a25e80302b4bea16f22e8db0bc2e8

commit e27a0cbeba1a25e80302b4bea16f22e8db0bc2e8
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Oct 5 13:37:45 2015 -0400

    clear menu cache when saving a menu file
    
    force regeneration of menus after editing them
    
    ref T2271
---
 src/bin/e_int_client_menu.c                                | 1 +
 src/modules/conf_applications/e_int_config_apps.c          | 1 +
 src/modules/conf_applications/e_int_config_apps_personal.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/bin/e_int_client_menu.c b/src/bin/e_int_client_menu.c
index 2d60dc3..f8508a7 100644
--- a/src/bin/e_int_client_menu.c
+++ b/src/bin/e_int_client_menu.c
@@ -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_save(menu, buf);
    efreet_menu_free(menu);
+   e_int_menus_cache_clear();
 }
 
 static void
diff --git a/src/modules/conf_applications/e_int_config_apps.c 
b/src/modules/conf_applications/e_int_config_apps.c
index aa28f79..2822b65 100644
--- a/src/modules/conf_applications/e_int_config_apps.c
+++ b/src/modules/conf_applications/e_int_config_apps.c
@@ -394,6 +394,7 @@ _save_menu(E_Config_Dialog_Data *cfdata)
      }
    ret = efreet_menu_save(menu, cfdata->data->filename);
    efreet_menu_free(menu);
+   e_int_menus_cache_clear();
    return ret;
 }
 
diff --git a/src/modules/conf_applications/e_int_config_apps_personal.c 
b/src/modules/conf_applications/e_int_config_apps_personal.c
index e3a8b15..84b854c 100644
--- a/src/modules/conf_applications/e_int_config_apps_personal.c
+++ b/src/modules/conf_applications/e_int_config_apps_personal.c
@@ -204,6 +204,7 @@ _btn_cb_del(void *data, void *data2 EINA_UNUSED)
         ecore_file_unlink(file);
         e_widget_ilist_remove_num(cfdata->obj.list, x);
      }
+   e_int_menus_cache_clear();
 }
 
 static void

-- 


Reply via email to