forked from enlightenment/edi
filepanel: when opening as different file type, close first then open to ensure the file is instantly accessible as text or code (editing).w
Reviewers: ajwillia.ms Reviewed By: ajwillia.ms Differential Revision: https://phab.enlightenment.org/D4844
This commit is contained in:
parent
a46e32046f
commit
19971b006a
|
@ -108,6 +108,7 @@ _item_menu_open_as_text_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
|||
Edi_Dir_Data *sd;
|
||||
|
||||
sd = data;
|
||||
edi_mainview_item_close_path(sd->path);
|
||||
_open_cb(sd->path, "text", EINA_FALSE);
|
||||
}
|
||||
|
||||
|
@ -118,6 +119,7 @@ _item_menu_open_as_code_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
|||
Edi_Dir_Data *sd;
|
||||
|
||||
sd = data;
|
||||
edi_mainview_item_close_path(sd->path);
|
||||
_open_cb(sd->path, "code", EINA_FALSE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue