From 2e2851dc13d73352530dd4495c7e05603b2e520d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 23:38:38 +0200 Subject: Adding upstream version 2.1.2~dev0+20240219. Signed-off-by: Daniel Baumann --- deluge/ui/console/cmdline/commands/gui.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 deluge/ui/console/cmdline/commands/gui.py (limited to 'deluge/ui/console/cmdline/commands/gui.py') diff --git a/deluge/ui/console/cmdline/commands/gui.py b/deluge/ui/console/cmdline/commands/gui.py new file mode 100644 index 0000000..575bc9b --- /dev/null +++ b/deluge/ui/console/cmdline/commands/gui.py @@ -0,0 +1,27 @@ +# +# Copyright (C) 2011 Nick Lanham +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + +import logging + +import deluge.component as component + +from . import BaseCommand + +log = logging.getLogger(__name__) + + +class Command(BaseCommand): + """Enable interactive mode""" + + interactive_only = True + + def handle(self, options): + console = component.get('ConsoleUI') + at = console.set_mode('TorrentList') + at.go_top = True + at.resume() -- cgit v1.2.3