mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
Revert last change to 0.5.2 tag.
This commit is contained in:
parent
20c22477f4
commit
b8726a6645
2 changed files with 5 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
plugin_name = "Scheduler" # The name of the plugin
|
plugin_name = "Scheduler" # The name of the plugin
|
||||||
plugin_author = "Lazka - updated by markybob" # The author's Name
|
plugin_author = "Lazka - updated by markybob" # The author's Name
|
||||||
plugin_version = "0.5.6" # The plugin's version number
|
plugin_version = "0.5.2" # The plugin's version number
|
||||||
plugin_description = "Scheduler" # A description of the plugin
|
plugin_description = "Scheduler" # A description of the plugin
|
||||||
|
|
||||||
def deluge_init(deluge_path):
|
def deluge_init(deluge_path):
|
||||||
|
|
|
@ -31,6 +31,7 @@ class plugin_Scheduler:
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
time_now = time.localtime(time.time())
|
time_now = time.localtime(time.time())
|
||||||
|
|
||||||
if self.status is not self.button_state[time_now[3]][time_now[6]]:
|
if self.status is not self.button_state[time_now[3]][time_now[6]]:
|
||||||
self.status = self.button_state[time_now[3]][time_now[6]]
|
self.status = self.button_state[time_now[3]][time_now[6]]
|
||||||
|
|
||||||
|
@ -54,14 +55,14 @@ class plugin_Scheduler:
|
||||||
self.core.apply_queue()
|
self.core.apply_queue()
|
||||||
|
|
||||||
def limit(self):
|
def limit(self):
|
||||||
self.config.set("max_download_speed", float(self.dllimit))
|
self.config.set("max_download_rate", float(self.dllimit))
|
||||||
self.config.set("max_upload_speed", float(self.ullimit))
|
self.config.set("max_upload_rate", float(self.ullimit))
|
||||||
|
|
||||||
def unlimit(self):
|
def unlimit(self):
|
||||||
self.interface.apply_prefs()
|
self.interface.apply_prefs()
|
||||||
|
|
||||||
#Configuration dialog
|
#Configuration dialog
|
||||||
def configure(self, window):
|
def configure(self):
|
||||||
global scheduler_select
|
global scheduler_select
|
||||||
|
|
||||||
self.button_state_temp = copy.deepcopy(self.button_state)
|
self.button_state_temp = copy.deepcopy(self.button_state)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue