Esempio n. 1
0
 def __init__(self, parent, *args, **kwargs):
     """"""
     AddonCore.__init__(self, parent)
     self.name = _("Shutdown")
     self.old_retries_count = conf.get_retries_limit()
     if self.old_retries_count == RETRIES_LIMIT:
         conf.set_retries_limit(str(99))
         self.old_retries_count = 99
Esempio n. 2
0
 def __init__(self, parent, *args, **kwargs):
     """"""
     AddonCore.__init__(self, parent)
     self.name = _("Shutdown")
     self.old_retries_count = conf.get_retries_limit()
     if self.old_retries_count == RETRIES_LIMIT:
         conf.set_retries_limit(str(99))
         self.old_retries_count = 99
Esempio n. 3
0
 def save(self):
     limit = str(self.retries_box.value())
     conf.set_retries_limit(limit)
     #
     html = self.html_box.isChecked()
     conf.set_html_dl(html)
     #
     max = str(self.conn_box.value())
     conf.set_max_conn(max)
Esempio n. 4
0
 def save(self):
     limit = str(self.retries_box.value())
     conf.set_retries_limit(limit)
     #
     html = self.html_box.isChecked()
     conf.set_html_dl(html)
     #
     max = str(self.conn_box.value())
     conf.set_max_conn(max)
Esempio n. 5
0
 def on_toggle(self):
     if self.action.isChecked(): #se activo
         #self.config.set_shutdown_active("True")
         events.all_downloads_complete.connect(self.trigger)
         conf.set_retries_limit(str(RETRIES_LIMIT))
     else:
         #self.config.set_shutdown_active("False")
         events.all_downloads_complete.disconnect(self.trigger)
         conf.set_retries_limit(str(self.old_retries_count))
Esempio n. 6
0
 def on_toggle(self):
     if self.action.isChecked():  #se activo
         #self.config.set_shutdown_active("True")
         events.all_downloads_complete.connect(self.trigger)
         conf.set_retries_limit(str(RETRIES_LIMIT))
     else:
         #self.config.set_shutdown_active("False")
         events.all_downloads_complete.disconnect(self.trigger)
         conf.set_retries_limit(str(self.old_retries_count))