[Pkg-privacy-commits] [onionshare] 245/256: Remove the extra instances of the Settings object, and only use OnionShareGui.settings
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
ulrike pushed a commit to branch master
in repository onionshare.
commit 444f50868dbfb78f1cacafe032a05c1f945ea8ef
Author: Micah Lee <micah at micahflee.com>
Date: Mon May 22 17:11:41 2017 -0700
Remove the extra instances of the Settings object, and only use OnionShareGui.settings
---
onionshare_gui/onionshare_gui.py | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index 46356e2..166700e 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -225,10 +225,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.set_server_active(True)
- # First, load settings and configure
- settings = Settings()
- settings.load()
- self.app.set_stealth(settings.get('use_stealth'))
+ self.app.set_stealth(self.settings.get('use_stealth'))
# Reset web counters
web.download_count = 0
@@ -245,10 +242,10 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.starting_server_error.emit(e.args[0])
return
- # start onionshare http service in new thread
- # First, load settings and configure
+
self.app.stay_open = not self.settings.get('close_after_first_download')
- common.log('OnionShareGUI', 'stay_open', 'stay_open={}'.format(self.app.stay_open))
+
+ # start onionshare http service in new thread
t = threading.Thread(target=web.start, args=(self.app.port, self.app.stay_open))
t.daemon = True
t.start()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list