(self)
Discard the current active preset. Will release any active plugins that could have come from the old preset.
Discard the current active preset. Will release any active plugins that could have come from the old preset.
Discard the current active preset . Will release any active plugins that could have come from the old preset .
def discard_plugin_preset(self):
        """
        Discard the current active preset. Will release any active plugins that could have come from the old preset.
        """
        if self.has_plugin_preset:
            for name, plugin in list(self._active_plugins.items()):
                if id(plugin) in self._provided_by_preset:
                    self.release_plugin(name)
            self._active_preset.deactivate(self)
        self._active_preset = None
def discard_plugin_preset ( self ) : if self . has_plugin_preset : for name , plugin in list ( self . _active_plugins . items ( ) ) : if id ( plugin ) in self . _provided_by_preset : self . release_plugin ( name ) self . _active_preset . deactivate ( self ) self . _active_preset = None