ajwillia-ms pushed a commit to branch master.

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

commit af6297992ec28a1b97ad17b828d370b9542808f4
Author: Andy Williams <a...@andywilliams.me>
Date:   Wed Sep 16 10:21:21 2015 +0100

    [config] don't re-open files not really opened
    
    When we chose type tapping cancel should not cause the file to be reopened 
later
---
 src/bin/mainview/edi_mainview.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/bin/mainview/edi_mainview.c b/src/bin/mainview/edi_mainview.c
index 187e73d..9da1dac 100644
--- a/src/bin/mainview/edi_mainview.c
+++ b/src/bin/mainview/edi_mainview.c
@@ -196,6 +196,8 @@ _edi_mainview_item_tab_add(Edi_Path_Options *options, const 
char *mime)
 
    if (options->line)
      edi_mainview_goto(options->line);
+
+   _edi_project_config_tab_add(options->path, EINA_FALSE);
 }
 
 static void
@@ -250,6 +252,8 @@ _edi_mainview_item_win_add(Edi_Path_Options *options, const 
char *mime)
 
    evas_object_resize(win, 380 * elm_config_scale_get(), 260 * 
elm_config_scale_get());
    evas_object_show(win);
+
+   _edi_project_config_tab_add(options->path, EINA_TRUE);
 }
 
 static void
@@ -311,7 +315,7 @@ _edi_mainview_choose_type(Evas_Object *parent EINA_UNUSED, 
Edi_Path_Options *opt
 
    // popup title
    elm_object_part_text_set(popup, "title,text",
-                            "Unrecognied file type");
+                            "Unrecognised file type");
 
    _edi_mainview_filetype_create(popup, "text", cb);
    _edi_mainview_filetype_create(popup, "code", cb);
@@ -403,8 +407,6 @@ edi_mainview_open(Edi_Path_Options *options)
      {
         _edi_mainview_item_tab_add(options, NULL);
      }
-
-   _edi_project_config_tab_add(options->path, EINA_FALSE);
 }
 
 void
@@ -442,8 +444,6 @@ edi_mainview_open_window(Edi_Path_Options *options)
      {
         _edi_mainview_item_win_add(options, NULL);
      }
-
-   _edi_project_config_tab_add(options->path, EINA_TRUE);
 }
 
 void
@@ -649,8 +649,8 @@ edi_mainview_add(Evas_Object *parent, Evas_Object *win)
    evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_show(box);
-   elm_box_pack_end(parent, box);   
-   
+   elm_box_pack_end(parent, box);
+
    tb = elm_toolbar_add(parent);
    evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, 0.0);
    evas_object_size_hint_align_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL);

-- 


Reply via email to