Remove unused code from label plugin
This commit is contained in:
parent
7f60867ae9
commit
ba514f0b0e
|
@ -259,7 +259,7 @@ class Core(CorePluginBase):
|
|||
return False
|
||||
|
||||
@export
|
||||
def set_options(self, label_id, options_dict , apply = False):
|
||||
def set_options(self, label_id, options_dict):
|
||||
"""update the label options
|
||||
|
||||
options_dict :
|
||||
|
@ -271,8 +271,6 @@ class Core(CorePluginBase):
|
|||
"apply_max":bool(),
|
||||
"move_completed_to":string() or None
|
||||
}
|
||||
|
||||
apply : applies download-options to all torrents currently labelled by label_id
|
||||
"""
|
||||
CheckInput(label_id in self.labels , _("Unknown Label"))
|
||||
for key in options_dict.keys():
|
||||
|
|
|
@ -46,11 +46,8 @@ import sidebar_menu
|
|||
import label_config
|
||||
import submenu
|
||||
|
||||
from deluge.configmanager import ConfigManager
|
||||
config = ConfigManager("label.conf")
|
||||
NO_LABEL = "No Label"
|
||||
|
||||
|
||||
def cell_data_label(column, cell, model, row, data):
|
||||
cell.set_property('text', str(model.get_value(row, data)))
|
||||
|
||||
|
|
|
@ -41,8 +41,6 @@ from deluge import component # for systray
|
|||
import gtk, gobject
|
||||
from deluge.ui.client import client
|
||||
|
||||
from deluge.configmanager import ConfigManager
|
||||
config = ConfigManager("label.conf")
|
||||
NO_LABEL = "No Label"
|
||||
|
||||
class LabelMenu(gtk.MenuItem):
|
||||
|
|
Loading…
Reference in New Issue