hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=8cbb20666961af83cd88fa2fe0de3ca95913fc59

commit 8cbb20666961af83cd88fa2fe0de3ca95913fc59
Author: Kateryna Fesyna <[email protected]>
Date:   Tue Aug 12 11:51:19 2014 +0900

    Live Edit: Part insertion is disabled while in Live Edit mode
    
    Reviewers: Hermet
    
    Reviewed By: Hermet
    
    Subscribers: NikaWhite
    
    Projects: #enventor
    
    Maniphest Tasks: T1515
    
    Differential Revision: https://phab.enlightenment.org/D1316
---
 src/bin/main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/main.c b/src/bin/main.c
index e23fe36..c687759 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -72,6 +72,12 @@ static Eina_Bool
 template_insert_patch(app_data *ad, const char *key)
 {
    Edje_Part_Type type;
+   if (config_live_edit_get())
+     {
+        stats_info_msg_update("Insertion of template code is disabled "
+                              "while in Live Edit mode");
+        return ECORE_CALLBACK_DONE;
+     }
 
    if (!strcmp(key, "a") || !strcmp(key, "A"))
      type = EDJE_PART_TYPE_TABLE;

-- 


Reply via email to