ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=19971b006a6541707f083a052963932a76cb5a4f

commit 19971b006a6541707f083a052963932a76cb5a4f
Author: Al Poole <nets...@gmail.com>
Date:   Wed May 3 21:42:57 2017 +0100

    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
---
 src/bin/edi_filepanel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/edi_filepanel.c b/src/bin/edi_filepanel.c
index 3fad056..675569f 100644
--- a/src/bin/edi_filepanel.c
+++ b/src/bin/edi_filepanel.c
@@ -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);
 }
 

-- 


Reply via email to