rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=59ac43c1672cddeec45e3eb161685fe8c89fcd26

commit 59ac43c1672cddeec45e3eb161685fe8c89fcd26
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Jan 13 12:07:49 2016 +0000

    workspace: hide and show demo instead of deletion, to keep all set values
---
 src/bin/ui/workspace/workspace.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index 3a4787d..a9d914f 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -951,7 +951,7 @@ _mode_changed(void *data,
    if ((sd->active_mode == MODE_NORMAL)/* || (sd->active_mode == 
MODE_SEPARATE) */)
      evas_object_hide(sd->groupedit);
    else
-     evas_object_del(sd->active_mode_object);
+     evas_object_hide(sd->active_mode_object);
 
    mode = elm_radio_state_value_get(obj);
 
@@ -980,7 +980,8 @@ _mode_changed(void *data,
             workspace_separate_mode_set(sd->obj, false);
             container_border_show(sd->container.obj);
 
-            sd->active_mode_object = demo_add(sd->scroller, sd->group);
+            if (!sd->active_mode_object)
+              sd->active_mode_object = demo_add(sd->scroller, sd->group);
             evas_object_show(sd->active_mode_object);
             container_content_set(sd->container.obj, sd->active_mode_object);
 
@@ -1266,6 +1267,7 @@ _workspace_smart_del(Evas_Object *o)
    evas_object_del(sd->highlight.highlight);
    demo_group_del(sd->demo_group);
    gm_group_edit_object_unload(sd->group);
+   evas_object_del(sd->active_mode_object);
    _workspace_parent_sc->del(o);
 }
 

-- 


Reply via email to