[Pkg-anonymity-tools] [onionshare] 39/140: close automatically checkbox respects --stay-open argument again
Ulrike Uhlig
u-guest at moszumanska.debian.org
Mon Sep 29 20:33:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository onionshare.
commit 9cb1871b02477ad041339ab7fbf7bc5ce4ee7712
Author: Micah Lee <micah at micahflee.com>
Date: Wed Aug 27 17:27:54 2014 -0700
close automatically checkbox respects --stay-open argument again
---
onionshare_gui/onionshare_gui.py | 2 +-
onionshare_gui/options.py | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index c7956bc..5d0cae0 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -48,7 +48,7 @@ class OnionShareGui(QtGui.QWidget):
downloads = Downloads()
# options
- options = Options()
+ options = Options(web.stay_open)
# main layout
self.layout = QtGui.QVBoxLayout()
diff --git a/onionshare_gui/options.py b/onionshare_gui/options.py
index 6e3a30a..16e8a85 100644
--- a/onionshare_gui/options.py
+++ b/onionshare_gui/options.py
@@ -4,13 +4,16 @@ import common
from onionshare import strings, helpers
class Options(QtGui.QHBoxLayout):
- def __init__(self):
+ def __init__(self, stay_open=False):
super(Options, self).__init__()
self.addSpacing(10)
# close automatically
self.close_automatically = QtGui.QCheckBox()
- self.close_automatically.setCheckState(QtCore.Qt.Checked)
+ if stay_open:
+ self.close_automatically.setCheckState(QtCore.Qt.Unchecked)
+ else:
+ self.close_automatically.setCheckState(QtCore.Qt.Checked)
self.close_automatically.setText(strings._("close_on_finish"))
# add the widgets
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/onionshare.git
More information about the Pkg-anonymity-tools
mailing list