elm_config: password mode change should reflect on already running applications.
authorShilpa Singh <shilpa.singh@samsung.com>
Mon, 5 Jun 2017 20:44:48 +0000 (13:44 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 5 Jun 2017 20:44:51 +0000 (13:44 -0700)
Summary:
When password mode is changed, the change has to reflect on already running
apps as well. config_sub_apply will not be called for an already running app.

Test Plan:
1. 2 running process
2. Change the config value of password last show in one process
3. Check whether the change has reflected in previous process.

Signed-off By: Shilpa Singh<shilpa.singh@samsung.com>

Reviewers: jpeg, cedric, thiepha

Subscribers: govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D4916

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elementary/elm_config.c

index 582eb3e..1d24f17 100644 (file)
@@ -1530,6 +1530,8 @@ _config_apply(void)
 {
    _elm_theme_parse(NULL, _elm_config->theme);
    ecore_animator_frametime_set(1.0 / _elm_config->fps);
+   edje_password_show_last_set(_elm_config->password_show_last);
+   edje_password_show_last_timeout_set(_elm_config->password_show_last_timeout);
 }
 
 static void
@@ -1537,8 +1539,6 @@ _config_sub_apply(void)
 {
    edje_frametime_set(1.0 / _elm_config->fps);
    edje_scale_set(_elm_config->scale);
-   edje_password_show_last_set(_elm_config->password_show_last);
-   edje_password_show_last_timeout_set(_elm_config->password_show_last_timeout);
    edje_transition_duration_factor_set(_elm_config->transition_duration_factor);
    if (_elm_config->modules) _elm_module_parse(_elm_config->modules);
    edje_audio_channel_mute_set(EDJE_CHANNEL_EFFECT, _elm_config->audio_mute_effect);