fixed bug where hidden service still closed even if "close automatically" unchecked in GUI (#58)

This commit is contained in:
Micah Lee 2014-06-26 14:45:18 -04:00
parent 8fce3adeb5
commit d0d4cebbff
4 changed files with 29 additions and 3 deletions

View file

@ -97,9 +97,11 @@ def main():
filename = args.filename
local_only = args.local_only
stay_open = args.stay_open
stay_open = bool(args.stay_open)
debug = args.debug
onionshare.set_stay_open(stay_open)
# create the onionshare icon
global window_icon, onionshare_gui_dir
window_icon = QIcon("{0}/onionshare-icon.png".format(onionshare_gui_dir))
@ -130,7 +132,7 @@ def main():
webapp.onion_host = local_host
webapp.qtapp = app
webapp.clipboard = app.clipboard()
webapp.stay_open = bool(stay_open)
webapp.stay_open = stay_open
# run the web app in a new thread
webapp_port = onionshare.choose_port()