From 16b845c0d77535ea306339f7a8bd22fc72f8a3c5 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 25 Oct 2017 08:17:17 -0400 Subject: Differentiate between installed and activated states for plugins (#7706) --- cmd/platform/server.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'cmd') diff --git a/cmd/platform/server.go b/cmd/platform/server.go index 591a27457..d0065245f 100644 --- a/cmd/platform/server.go +++ b/cmd/platform/server.go @@ -75,14 +75,6 @@ func runServer(configFileLocation string) { if webappDir, ok := utils.FindDir(model.CLIENT_DIR); ok { a.InitPlugins("plugins", webappDir+"/plugins") - - utils.AddConfigListener(func(prevCfg *model.Config, cfg *model.Config) { - if !*prevCfg.PluginSettings.Enable && *cfg.PluginSettings.Enable { - a.InitPlugins("plugins", webappDir+"/plugins") - } else if *prevCfg.PluginSettings.Enable && !*cfg.PluginSettings.Enable { - a.ShutDownPlugins() - } - }) } else { l4g.Error("Unable to find webapp directory, could not initialize plugins") } -- cgit v1.2.3-1-g7c22