netstar pushed a commit to branch master.

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

commit e5aca41ad1db95bcd00c1bca71b7630b3d22bbcb
Author: Al Poole <[email protected]>
Date:   Sat Sep 30 00:28:53 2017 +0100

    filepanel: simplify code by using existing method.
---
 src/bin/edi_filepanel.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/bin/edi_filepanel.c b/src/bin/edi_filepanel.c
index bd5f6f6..da644cd 100644
--- a/src/bin/edi_filepanel.c
+++ b/src/bin/edi_filepanel.c
@@ -301,8 +301,7 @@ _item_menu_open_panel_cb(void *data, Evas_Object *obj 
EINA_UNUSED,
    Edi_Path_Options *options;
    Edi_Dir_Data *sd = data;
 
-   if (edi_mainview_panel_count() == 1 &&
-      (edi_mainview_panel_item_count(edi_mainview_panel_by_index(0)) == 0))
+   if (edi_mainview_is_empty())
      panel = edi_mainview_panel_by_index(0);
    else
      panel = edi_mainview_panel_append();

-- 


Reply via email to