예제 #1
0
 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)
예제 #2
0
 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()
예제 #3
0
 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)
예제 #4
0
 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()
예제 #5
0
 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)
예제 #6
0
 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())
예제 #7
0
 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()
예제 #8
0
 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()
예제 #9
0
 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)
예제 #10
0
 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())