mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-09 23:02:54 -04:00
fixed bug where hidden service still closed even if "close automatically" unchecked in GUI (#58)
This commit is contained in:
parent
8fce3adeb5
commit
d0d4cebbff
4 changed files with 29 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue