def destroy(self): '''Destroy the plugin object and all extensions It is only called when a user actually disables the plugin, not when the application exits. Destroys all active extensions and disconnects all signals. This should revert any changes the plugin made to the application (although preferences etc. can be left in place). ''' from zim.objectmanager import ObjectManager for obj in self.extensions: obj.destroy() for obj in self._objecttypes: ObjectManager.unregister_object(obj) try: self.disconnect_all() self.teardown() except: logger.exception('Exception while disconnecting %s', self)
def teardown(self): ObjectManager.unregister_object(OBJECT_TYPE)
def teardown(self): ''' Deconstructor ''' ObjectManager.unregister_object(OBJECT_TYPE) self.window.ui.reload_page()
def teardown(self): ''' Deconstructor ''' ObjectManager.unregister_object(OBJECT_TYPE)