Example #1
0
    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)
Example #2
0
	def teardown(self):
		ObjectManager.unregister_object(OBJECT_TYPE)
Example #3
0
 def teardown(self):
     ''' Deconstructor '''
     ObjectManager.unregister_object(OBJECT_TYPE)
     self.window.ui.reload_page()
Example #4
0
 def teardown(self):
     ''' Deconstructor '''
     ObjectManager.unregister_object(OBJECT_TYPE)