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:
Al Poole 2017-05-03 21:42:57 +01:00 committed by Andy Williams
parent a46e32046f
commit 19971b006a
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}