[Pkg-privacy-commits] [onionshare] 40/256: Put stealth option in a separate advanced group, in anticipation of other advanced options

Ulrike Uhlig ulrike at moszumanska.debian.org
Fri May 26 12:53:08 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 a56c9b56a6692bee00f50a99b9bee31d1545cf3b
Author: Micah Lee <micah at micahflee.com>
Date:   Wed Dec 28 09:55:14 2016 -0800

    Put stealth option in a separate advanced group, in anticipation of other advanced options
---
 onionshare_gui/options.py | 13 +++++++++++--
 resources/locale/en.json  |  3 ++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/onionshare_gui/options.py b/onionshare_gui/options.py
index 0f4b626..538f562 100644
--- a/onionshare_gui/options.py
+++ b/onionshare_gui/options.py
@@ -43,12 +43,21 @@ class Options(QtWidgets.QVBoxLayout):
         # stealth
         self.stealth = QtWidgets.QCheckBox()
         self.stealth.setCheckState(QtCore.Qt.Unchecked)
-        self.stealth.setText(strings._("create_stealth", True))
+        self.stealth.setText(strings._("gui_create_stealth", True))
         self.stealth.stateChanged.connect(self.stealth_changed)
 
+        # advanced options group
+        advanced_group = QtWidgets.QGroupBox(strings._("gui_advanced_options", True))
+        advanced_group.setCheckable(True)
+        advanced_group.setChecked(False)
+        advanced_group.setFlat(True)
+        advanced_group_layout = QtWidgets.QVBoxLayout()
+        advanced_group_layout.addWidget(self.stealth)
+        advanced_group.setLayout(advanced_group_layout)
+
         # add the widgets
         self.addWidget(self.close_automatically)
-        self.addWidget(self.stealth)
+        self.addWidget(advanced_group)
 
     def stay_open_changed(self, state):
         """
diff --git a/resources/locale/en.json b/resources/locale/en.json
index 41a398a..3c9dcd1 100644
--- a/resources/locale/en.json
+++ b/resources/locale/en.json
@@ -57,5 +57,6 @@
     "error_rate_limit": "An attacker might be trying to guess your URL. To prevent this, OnionShare has automatically stopped the server. To share the files you must start it again and share the new URL.",
     "zip_progress_bar_format": "Crunching files: %p%",
     "error_stealth_not_supported": "Your versions of tor or stem are too old. You need to upgrade them to create stealth onion services.",
-    "create_stealth": "Create stealth onion service (advanced)"
+    "gui_advanced_options": "Advanced options",
+    "gui_create_stealth": "Create stealth onion service"
 }

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