[Pkg-privacy-commits] [onionshare] 212/256: Send stay_open variable in the right place, so that it really does stay open if we said so

Ulrike Uhlig ulrike at moszumanska.debian.org
Fri May 26 12:53:43 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 f446f6630dc4c096e17c6816b64ae7d640405bfa
Author: Miguel Jacq <mig at mig5.net>
Date:   Sat May 20 16:59:13 2017 +1000

    Send stay_open variable in the right place, so that it really does stay open if we said so
---
 onionshare_gui/onionshare_gui.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index 6eca450..4f34039 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -203,7 +203,6 @@ class OnionShareGui(QtWidgets.QMainWindow):
         settings = Settings()
         settings.load()
         self.app.set_stealth(settings.get('use_stealth'))
-        web.set_stay_open(not settings.get('close_after_first_download'))
 
         # Reset web counters
         web.download_count = 0
@@ -221,6 +220,11 @@ class OnionShareGui(QtWidgets.QMainWindow):
                 return
 
             # 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')
+            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
             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