[Pkg-privacy-commits] [onionshare] 120/256: Make onionshare respect settings that come from the Settings object, instead of the options dialog
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:25 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 2053c6fab2ffa1491a082e632d6c5766f40d440e
Author: Micah Lee <micah at micahflee.com>
Date: Sat Apr 8 15:05:50 2017 -0700
Make onionshare respect settings that come from the Settings object, instead of the options dialog
---
onionshare_gui/__init__.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/onionshare_gui/__init__.py b/onionshare_gui/__init__.py
index edae07d..3b7f43f 100644
--- a/onionshare_gui/__init__.py
+++ b/onionshare_gui/__init__.py
@@ -24,6 +24,7 @@ from PyQt5.QtCore import pyqtSlot
import onionshare
from onionshare import strings, helpers, web
+from onionshare.settings import Settings
from .menu import Menu
from .file_selection import FileSelection
@@ -147,6 +148,12 @@ class OnionShareGui(QtWidgets.QMainWindow):
Start the onionshare server. This uses multiple threads to start the Tor onion
server and the web app.
"""
+ # First, load settings and configure
+ 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
web.error404_count = 0
--
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