def disable(self): """ disables the plugin and connects to the editor """ if self._enabled: return self._enabled = False postMapShown.disconnect(self.update_namespaces) onObjectSelected.disconnect(self.set_object) onObjectsImported.disconnect(self.update_namespaces)
def disable(self): """ Disable plugin """ if not self._enabled: return self.container.setDocked(False) self.container.hide() postMapShown.disconnect(self.update) preMapClosed.disconnect(self._mapClosed) self._editor._tools_menu.removeAction(self._action_show)
def disable(self): """ disables the plugin """ if not self._enabled: return self._enabled = False onInstancesSelected.disconnect(self.highlight) preMapClosed.disconnect(self.reset) postMapShown.disconnect(self.reset) onLayerDelete.disconnect(self.reset) mouseClicked.disconnect(self.mouse_clicked) onQuit.disconnect(self.reset)
def disable(self): """ plugin method """ if not self._enabled: return self._enabled = False self.container.hide() self.reset() onObjectSelected.disconnect(self.update) onInstancesSelected.disconnect(self.update) preMapClosed.disconnect(self.hide) postMapShown.disconnect(self.update) self._editor._tools_menu.removeAction(self._action_show)