[gnome-builder] libide/core: always emit settings changed signal



commit d74e4c4f1702686fdb05cfd735f27b5c74139a6b
Author: Christian Hergert <chergert redhat com>
Date:   Thu Aug 18 17:20:27 2022 -0700

    libide/core: always emit settings changed signal

 src/libide/core/ide-layered-settings.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/core/ide-layered-settings.c b/src/libide/core/ide-layered-settings.c
index 6424ae775..dd9adb0be 100644
--- a/src/libide/core/ide-layered-settings.c
+++ b/src/libide/core/ide-layered-settings.c
@@ -88,7 +88,7 @@ ide_layered_settings_cache_key (IdeLayeredSettings *self,
       if (value != NULL)
         {
           g_settings_set_value (self->memory_settings, key, value);
-          return;
+          goto emit_changed;
         }
     }
 
@@ -96,6 +96,7 @@ ide_layered_settings_cache_key (IdeLayeredSettings *self,
   value = g_settings_get_value (settings, key);
   g_settings_set_value (self->memory_settings, key, value);
 
+emit_changed:
   g_signal_emit (self, signals[CHANGED], g_quark_from_string (key), key);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]