summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2023-02-06 14:15:09 +0100
committerJan-Michael Brummer <jan.brummer@tabos.org>2023-03-27 16:31:58 +0200
commitcf685beba5c782d4171e058eebeb2b9145bff6f5 (patch)
treef61676e873095fe4d88fecaea9817ac3d05e7afd
parent42aeea8f26b8a9c8341ab37a82d8060673a220ab (diff)
downloadlibproxy-git-cf685beba5c782d4171e058eebeb2b9145bff6f5.tar.gz
Remove load check in pxmanager (#48)
This check does nothing and can be removed.
-rw-r--r--src/backend/px-manager.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/backend/px-manager.c b/src/backend/px-manager.c
index a39cdca..4981c30 100644
--- a/src/backend/px-manager.c
+++ b/src/backend/px-manager.c
@@ -116,14 +116,12 @@ px_manager_constructed (GObject *object)
PeasExtension *extension = peas_extension_set_get_extension (self->config_set, info);
gboolean available = TRUE;
- if (!peas_plugin_info_is_loaded (info)) {
- /* In case user requested a specific module, just load that one */
- if (self->config_plugin && g_str_has_prefix (peas_plugin_info_get_module_name (info), "config-")) {
- if (g_strcmp0 (peas_plugin_info_get_module_name (info), self->config_plugin) == 0)
- peas_engine_load_plugin (self->engine, info);
- } else {
+ /* In case user requested a specific module, just load that one */
+ if (self->config_plugin && g_str_has_prefix (peas_plugin_info_get_module_name (info), "config-")) {
+ if (g_strcmp0 (peas_plugin_info_get_module_name (info), self->config_plugin) == 0)
peas_engine_load_plugin (self->engine, info);
- }
+ } else {
+ peas_engine_load_plugin (self->engine, info);
}
extension = peas_extension_set_get_extension (self->config_set, info);