diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index 620bf4651..1b88b6261 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -332,7 +332,7 @@ class AllTorrents(BaseMode, component.Component): "seeding_time","time_added","distributed_copies", "num_pieces", "piece_length","save_path"] - self.legacy_mode = Legacy(self.stdscr,self.config,self.encoding) + self.legacy_mode = Legacy(self.stdscr, self.encoding) # component start/update def start(self): diff --git a/deluge/ui/console/modes/legacy.py b/deluge/ui/console/modes/legacy.py index 0c607b328..172dca5bd 100644 --- a/deluge/ui/console/modes/legacy.py +++ b/deluge/ui/console/modes/legacy.py @@ -108,7 +108,7 @@ def commonprefix(m): class Legacy(BaseMode, component.Component): - def __init__(self, stdscr, console_config, encoding=None): + def __init__(self, stdscr, encoding=None): component.Component.__init__(self, "LegacyUI") @@ -135,7 +135,7 @@ class Legacy(BaseMode, component.Component): # Get a handle to the main console self.console = component.get("ConsoleUI") - self.console_config = console_config + self.console_config = component.get("AllTorrents").config # show the cursor curses.curs_set(2)