This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit 5a6fb2450c692f60d266dbe50aee118db920f134
Author: Carsten Haitzler <[email protected]>
AuthorDate: Thu Dec 29 12:05:48 2022 +0000

    music control - dont add another desklock handler if one is already
    
    @fix
---
 src/modules/music-control/ui.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/modules/music-control/ui.c b/src/modules/music-control/ui.c
index ce66173c4..da1f934e1 100644
--- a/src/modules/music-control/ui.c
+++ b/src/modules/music-control/ui.c
@@ -274,7 +274,10 @@ _cfg_data_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
    inst->ctxt->config->pause_on_desklock = cfdata->pause_on_desklock;
 
    if (inst->ctxt->config->pause_on_desklock)
-      desklock_handler = ecore_event_handler_add(E_EVENT_DESKLOCK, _desklock_cb, inst->ctxt);
+     {
+        if (!desklock_handler)
+          desklock_handler = ecore_event_handler_add(E_EVENT_DESKLOCK, _desklock_cb, inst->ctxt);
+     }
    else
      E_FREE_FUNC(desklock_handler, ecore_event_handler_del);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to