mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix some server settings not being applied when clicking start server in Preferences->Sharing over the net
This commit is contained in:
parent
5356225197
commit
fc1e9175fc
@ -57,17 +57,8 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
|
|
||||||
r('autolaunch_server', config)
|
r('autolaunch_server', config)
|
||||||
|
|
||||||
def set_server_options(self):
|
|
||||||
c = self.proxy
|
|
||||||
c.set('port', self.opt_port.value())
|
|
||||||
c.set('username', unicode(self.opt_username.text()).strip())
|
|
||||||
p = unicode(self.opt_password.text()).strip()
|
|
||||||
if not p:
|
|
||||||
p = None
|
|
||||||
c.set('password', p)
|
|
||||||
|
|
||||||
def start_server(self):
|
def start_server(self):
|
||||||
self.set_server_options()
|
ConfigWidgetBase.commit(self)
|
||||||
self.gui.start_content_server(check_started=False)
|
self.gui.start_content_server(check_started=False)
|
||||||
while not self.gui.content_server.is_running and self.gui.content_server.exception is None:
|
while not self.gui.content_server.is_running and self.gui.content_server.exception is None:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user