mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
combine download/import
This commit is contained in:
parent
4368554937
commit
4990d273a4
@ -67,10 +67,11 @@ class BlockListCfgForm(forms.Form):
|
||||
del cfg["btn_download_now"]
|
||||
del cfg["btn_import_now"]
|
||||
sclient.blocklist_set_config(cfg)
|
||||
if data.btn_download_now:
|
||||
if data.btn_import_now:
|
||||
aclient.blocklist_import(None, data.btn_download_now)
|
||||
elif data.btn_download_now:
|
||||
aclient.blocklist_download(None)
|
||||
elif data.btn_import_now:
|
||||
aclient.blocklist_import(None)
|
||||
|
||||
|
||||
#input fields :
|
||||
listtype = forms.ChoiceField(FORMAT_LIST)
|
||||
|
Loading…
x
Reference in New Issue
Block a user