mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 04:02:40 -03:00
get settings from self rather than instantiate a new Settings object
This commit is contained in:
parent
f446f6630d
commit
13a2ad2147
1 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue