def on_toggle(self): if self.action.isChecked(): #se activo conf.set_addon_option(OPTION_IP_RENEW_ACTIVE, "True") self.connect() else: conf.set_addon_option(OPTION_IP_RENEW_ACTIVE, "False") events.limit_exceeded.disconnect(self.trigger)
def on_toggle(self): if self.action.isChecked(): # se activo conf.set_addon_option(OPTION_UNRAR_ACTIVE, "True") self.connect() else: conf.set_addon_option(OPTION_UNRAR_ACTIVE, "False") self.disconnect()
def save(self): """""" conf.set_addon_option(OPTION_UNRAR_REMOVE_FILES, self.remove_files_box.isChecked(), is_bool=True) # txt = self.text_view.toPlainText() passwords_handler.replace(txt.splitlines()) passwords_handler.save()
def on_toggle(self): if self.action.isChecked(): #se activo conf.set_addon_option(OPTION_HISTORY_ACTIVE, "True") self.connect() else: conf.set_addon_option(OPTION_HISTORY_ACTIVE, "False") events.download_complete.disconnect(self.trigger)
def save(self): """""" exts_activate = "True" if self.exts_box.isChecked() else "False" conf.set_addon_option(clipboard_gui.OPTION_CLIPBOARD_ACTIVE, exts_activate) conf.set_addon_option(clipboard_gui.OPTION_CLIPBOARD_EXTS, self.exts_line.text())
def save(self): if self.radio_script.isChecked(): conf.set_addon_option(OPTION_RENEW_SCRIPT_ACTIVE, "True") else: conf.set_addon_option(OPTION_RENEW_SCRIPT_ACTIVE, "False") path = self.entry_script_path.text() conf.set_addon_option(OPTION_IP_RENEW_SCRIPT_PATH, path)