mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-14 18:06:30 -04:00
get settings from self rather than instantiate a new Settings object
This commit is contained in:
parent
c5dfeffd4e
commit
38107404ee
@ -221,9 +221,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
||||
|
||||
# start onionshare http service in new thread
|
||||
# First, load settings and configure
|
||||
settings = Settings()
|
||||
settings.load()
|
||||
self.app.stay_open = not settings.get('close_after_first_download')
|
||||
self.app.stay_open = not self.settings.get('close_after_first_download')
|
||||
common.log('OnionShareGUI', 'stay_open', 'stay_open={}'.format(self.app.stay_open))
|
||||
t = threading.Thread(target=web.start, args=(self.app.port, self.app.stay_open))
|
||||
t.daemon = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user