[gnome-builder] app: skip over loaded plugins



commit d8d55d34c3e2378701dcb04eeadafcc4f1a9b4e7
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jul 24 11:55:17 2018 -0700

    app: skip over loaded plugins
    
    This makes it safer for us to potentially call this additional times in
    the future. That could be useful if we want to delay certain classes of
    plugins upon startup.

 src/libide/application/ide-application-plugins.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libide/application/ide-application-plugins.c 
b/src/libide/application/ide-application-plugins.c
index 1c26c6a2b..ea08b13e8 100644
--- a/src/libide/application/ide-application-plugins.c
+++ b/src/libide/application/ide-application-plugins.c
@@ -295,6 +295,9 @@ ide_application_load_plugins (IdeApplication *self)
       GSettings *settings;
       const gchar *module_name;
 
+      if (peas_plugin_info_is_loaded (plugin_info))
+        continue;
+
       module_name = peas_plugin_info_get_module_name (plugin_info);
       settings = _ide_application_plugin_get_settings (self, module_name);
 


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