forked from enlightenment/enventor
enventor_object_save() forcely rewrites if the file path is changed.
so app doesn't need to care it anymore.
This commit is contained in:
parent
3dfaf7cb61
commit
d146547b52
|
@ -55,7 +55,6 @@ warning_replace_btn_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
|||
{
|
||||
file_mgr_data *fmd = data;
|
||||
enventor_object_file_set(fmd->enventor, config_edc_path_get());
|
||||
enventor_object_modified_set(fmd->enventor, EINA_FALSE);
|
||||
warning_close(fmd);
|
||||
}
|
||||
|
||||
|
|
|
@ -424,9 +424,6 @@ fileselector_save_done_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
return;
|
||||
}
|
||||
|
||||
//Update the edc file and try to save.
|
||||
if (strcmp(config_edc_path_get(), selected))
|
||||
enventor_object_modified_set(md->enventor, EINA_TRUE);
|
||||
config_edc_path_set(selected);
|
||||
|
||||
Eina_List *list = eina_list_append(NULL, config_edj_path_get());
|
||||
|
|
|
@ -531,6 +531,8 @@ EOLIAN static Eina_Bool
|
|||
_enventor_object_save(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
||||
const char *file)
|
||||
{
|
||||
//Update edc file and try to save if the edc path is different.
|
||||
if (build_edc_path_get() != file) edit_changed_set(pd->ed, EINA_TRUE);
|
||||
return edit_save(pd->ed, file);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue