Change 'prompt-download-location' setting to 'prompt-download-directory'

This commit is contained in:
Alexander Cogneau 2015-08-06 16:44:58 +02:00
parent 9a85b66452
commit 8ffe73cc5f
2 changed files with 5 additions and 5 deletions

View File

@ -714,8 +714,8 @@ class DownloadManager(QAbstractListModel):
QNetworkRequest.AlwaysNetwork)
suggested_fn = urlutils.filename_from_url(request.url())
prompt_download_location = config.get('storage', 'prompt-download-location')
if not prompt_download_location:
prompt_download_directory = config.get('storage', 'prompt-download-directory')
if not prompt_download_directory:
filename = config.get('storage', 'download-directory')
if fileobj is not None or filename is not None:
@ -807,8 +807,8 @@ class DownloadManager(QAbstractListModel):
if not self._update_timer.isActive():
self._update_timer.start()
prompt_download_location = config.get('storage', 'prompt-download-location')
if not prompt_download_location:
prompt_download_directory = config.get('storage', 'prompt-download-directory')
if not prompt_download_directory:
filename = config.get('storage', 'download-directory')
if filename is not None:

View File

@ -558,7 +558,7 @@ def data(readonly=False):
"sensible os-specific default. Will expand environment "
"variables."),
('prompt-download-location',
('prompt-download-directory',
SettingValue(typ.Bool(), 'true'),
"Whether to prompt the user for the download location.\n"
"If set to false, 'download-directory' will be used."),