mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
add back in the old WebUI class and rename the import in ui.py so
compatibility isn't broken
This commit is contained in:
parent
cd050bf8e7
commit
2f44899521
2 changed files with 8 additions and 2 deletions
|
@ -98,7 +98,7 @@ class UI:
|
|||
ui = GtkUI(args)
|
||||
elif selected_ui == "web":
|
||||
log.info("Starting WebUI..")
|
||||
from deluge.ui.web.webui import WebUI
|
||||
from deluge.ui.web.web import WebUI
|
||||
ui = WebUI(args)
|
||||
elif selected_ui == "console":
|
||||
log.info("Starting ConsoleUI..")
|
||||
|
|
|
@ -23,9 +23,15 @@
|
|||
#
|
||||
|
||||
import server
|
||||
from deluge.ui.ui import _UI
|
||||
from deluge.ui.ui import _UI, UI
|
||||
from optparse import OptionGroup
|
||||
|
||||
class WebUI(UI):
|
||||
def __init__(self, args):
|
||||
import server
|
||||
deluge_web = server.DelugeWeb()
|
||||
deluge_web.start()
|
||||
|
||||
class Web(_UI):
|
||||
|
||||
help = """Starts the Deluge web interface"""
|
||||
|
|
Loading…
Add table
Reference in a new issue