From e5aca41ad1db95bcd00c1bca71b7630b3d22bbcb Mon Sep 17 00:00:00 2001 From: Al Poole Date: Sat, 30 Sep 2017 00:28:53 +0100 Subject: [PATCH] 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();