mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-25 06:29:54 -04:00
Remove the "Allow downloading individual files" setting altogether, and make it just automatically enabled if "Stop sharing..." is disabled
This commit is contained in:
parent
1232eb1072
commit
113cd7eb4b
6 changed files with 4 additions and 34 deletions
|
@ -98,7 +98,6 @@ class Settings(object):
|
|||
'auth_type': 'no_auth',
|
||||
'auth_password': '',
|
||||
'close_after_first_download': True,
|
||||
'share_allow_downloading_individual_files': True,
|
||||
'autostop_timer': False,
|
||||
'autostart_timer': False,
|
||||
'use_stealth': False,
|
||||
|
|
|
@ -16,9 +16,8 @@ class ShareModeWeb(SendBaseModeWeb):
|
|||
"""
|
||||
def init(self):
|
||||
self.common.log('ShareModeWeb', 'init')
|
||||
# If "Stop sharing after files have been sent" is unchecked and "Allow downloading of individual files" is checked
|
||||
self.download_individual_files = not self.common.settings.get('close_after_first_download') \
|
||||
and self.common.settings.get('share_allow_downloading_individual_files')
|
||||
# Allow downloading individual files if "Stop sharing after files have been sent" is unchecked
|
||||
self.download_individual_files = not self.common.settings.get('close_after_first_download')
|
||||
|
||||
def define_routes(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue