Properly handle errors for using stealth onion services in the GUI, instead of crashing in the background (#144)

This commit is contained in:
Micah Lee 2016-12-23 19:08:18 -08:00
parent 0512e5e84b
commit 5241d756bf
3 changed files with 11 additions and 2 deletions

View file

@ -66,9 +66,9 @@ class Options(QtWidgets.QVBoxLayout):
When the 'stealth' checkbox is toggled, let the onionshare app know.
"""
if state == 2:
self.app.stealth = True
self.app.set_stealth(True)
else:
self.app.stealth = False
self.app.set_stealth(False)
def set_stealth_enabled(self, enabled):
"""