Add Web.generate_static_url_path back, so each share has its own static path

This commit is contained in:
Micah Lee 2019-09-01 16:03:57 -07:00
parent a0759cedcd
commit e7959f9ae6
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 16 additions and 6 deletions

View file

@ -42,6 +42,9 @@ class OnionThread(QtCore.QThread):
def run(self):
self.mode.common.log('OnionThread', 'run')
# Make a new static URL path for each new share
self.mode.web.generate_static_url_path()
# Choose port and password early, because we need them to exist in advance for scheduled shares
self.mode.app.stay_open = not self.mode.common.settings.get('close_after_first_download')
if not self.mode.app.port: