[gnome-software/gnome-3-20] trivial: Do not run gs_plugin_setup() if not enabled
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] trivial: Do not run gs_plugin_setup() if not enabled
- Date: Sun, 17 Apr 2016 19:16:45 +0000 (UTC)
commit 55b28383c50c133970a9baf169c9cce4fd810d5c
Author: Richard Hughes <richard hughsie com>
Date: Sat Apr 16 12:14:08 2016 +0100
trivial: Do not run gs_plugin_setup() if not enabled
src/gs-plugin-loader.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 9a333a6..cc41712 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -3314,6 +3314,8 @@ gs_plugin_loader_setup (GsPluginLoader *plugin_loader, GError **error)
/* run setup() if it exists */
plugin = g_ptr_array_index (priv->plugins, i);
+ if (!plugin->enabled)
+ continue;
ret = g_module_symbol (plugin->module,
function_name,
(gpointer *) &plugin_func);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]