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
|
@ -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…
Reference in New Issue