[Pkg-privacy-commits] [onionshare] 236/256: get settings from self rather than instantiate a new Settings object

Ulrike Uhlig ulrike at moszumanska.debian.org
Fri May 26 12:53:49 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 13a2ad21473d73766bc54afc3cd99db3d3deb311
Author: Miguel Jacq <mig at mig5.net>
Date:   Tue May 23 09:15:52 2017 +1000

    get settings from self rather than instantiate a new Settings object
---
 onionshare_gui/onionshare_gui.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index 4f34039..de1b5c6 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -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

-- 
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