[Pkg-privacy-commits] [onionshare] 29/53: "Stop sharing automatically" checkbox respected in GUI when toggled before the server is started (fixes #223)

Ulrike Uhlig u-guest at moszumanska.debian.org
Wed Dec 30 00:20:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch debian
in repository onionshare.

commit ce79633eec74b6992dcb276fdd5122be2f015f6d
Author: Micah Lee <micah at micahflee.com>
Date:   Fri Nov 20 13:43:19 2015 -0800

    "Stop sharing automatically" checkbox respected in GUI when toggled before the server is started (fixes #223)
---
 onionshare_gui/onionshare_gui.py | 2 +-
 onionshare_gui/options.py        | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index dc33a5b..d9d94f9 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -106,7 +106,7 @@ class OnionShareGui(QtGui.QWidget):
         self.downloads = Downloads()
 
         # options
-        self.options = Options(web)
+        self.options = Options(web, self.app)
 
         # status bar
         self.status_bar = QtGui.QStatusBar()
diff --git a/onionshare_gui/options.py b/onionshare_gui/options.py
index f3a91d2..176f1c3 100644
--- a/onionshare_gui/options.py
+++ b/onionshare_gui/options.py
@@ -27,10 +27,11 @@ class Options(QtGui.QHBoxLayout):
     """
     The extra onionshare options in the GUI.
     """
-    def __init__(self, web):
+    def __init__(self, web, app):
         super(Options, self).__init__()
 
         self.web = web
+        self.app = app
 
         # close automatically
         self.close_automatically = QtGui.QCheckBox()
@@ -50,5 +51,7 @@ class Options(QtGui.QHBoxLayout):
         """
         if state > 0:
             self.web.set_stay_open(False)
+            self.app.stay_open = False
         else:
             self.web.set_stay_open(True)
+            self.app.stay_open = 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