hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=367ddab33a2dcc13769ee71657a44a2e409b58c4

commit 367ddab33a2dcc13769ee71657a44a2e409b58c4
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Tue Aug 12 11:55:50 2014 +0900

    live_edit: template insertion is disabled while in Live Edit mode.
---
 src/bin/main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/main.c b/src/bin/main.c
index c687759..87ab9e1 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -155,6 +155,12 @@ ctrl_func(app_data *ad, const char *key)
    //Template Code
    if (!strcmp(key, "t") || !strcmp(key, "T"))
      {
+        if (config_live_edit_get())
+          {
+             stats_info_msg_update("Insertion of template code is disabled "
+                                   "while in Live Edit mode");
+             return ECORE_CALLBACK_DONE;
+          }
         template_insert(ad->ed);
         return ECORE_CALLBACK_DONE;
      }

-- 


Reply via email to