From b5154494986880ebe9514ed06092c825654ed26e Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sat, 8 Apr 2017 15:05:50 -0700 Subject: [PATCH] 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 edae07d8..3b7f43f7 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