Fixed bug in validating downloads dir related to moving settings into common

This commit is contained in:
Micah Lee 2018-03-13 03:59:52 -07:00
parent 14d7921bb9
commit 89544694cc

View File

@ -98,7 +98,7 @@ def main(cwd=None):
except:
print(strings._('error_cannot_create_downloads_dir').format(common.settings.get('downloads_dir')))
valid = False
if valid and not os.access(settings.get('downloads_dir'), os.W_OK):
if valid and not os.access(common.settings.get('downloads_dir'), os.W_OK):
print(strings._('error_downloads_dir_not_writable').format(common.settings.get('downloads_dir')))
valid = False
if not valid: