Beispiel #1
0
		private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded)
		{
			if (plugin == null)
				return PluginResponse.PluginNotFound;

			plugin.Unload();

			if (keepUnloaded)
				plugin.status = PluginStatus.Disabled;
			return PluginResponse.Ok;
		}
Beispiel #2
0
        private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded)
        {
            if (plugin == null)
            {
                return(PluginResponse.PluginNotFound);
            }

            plugin.Unload();

            if (keepUnloaded)
            {
                plugin.status = PluginStatus.Disabled;
            }
            return(PluginResponse.Ok);
        }
		private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded)
		{
			if (plugin == null)
				return PluginResponse.PluginNotFound;

			plugin.Unload();

			if (keepUnloaded)
				plugin.status = PluginStatus.Disabled;
			return PluginResponse.Ok;
		}