Remove the "Allow downloading individual files" setting altogether, and make it just automatically enabled if "Stop sharing..." is disabled

This commit is contained in:
Micah Lee 2019-09-01 21:22:59 -07:00
parent 1232eb1072
commit 113cd7eb4b
6 changed files with 4 additions and 34 deletions

View file

@ -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,

View file

@ -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):
"""