From 8ffe73cc5f918afc146e82192117491d5ac29fd1 Mon Sep 17 00:00:00 2001 From: Alexander Cogneau Date: Thu, 6 Aug 2015 16:44:58 +0200 Subject: [PATCH] Change 'prompt-download-location' setting to 'prompt-download-directory' --- qutebrowser/browser/downloads.py | 8 ++++---- qutebrowser/config/configdata.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index f389dbaa3..a0241f716 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -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: diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 6e0f954de..7a1f4f236 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -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."),