Don't prompt if not storage->prompt-download-dir

This commit is contained in:
Daniel Schadt 2015-11-11 20:39:35 +01:00
parent 0f8ec73c55
commit 4e3cd8b9e8

View File

@ -1185,6 +1185,8 @@ class CommandDispatcher:
dest: The file path to write the download to.
"""
tab_id = self._current_index()
if not config.get('storage', 'prompt-download-directory'):
dest = downloads.download_dir()
if dest is None:
suggested_fn = self._current_title() + ".mht"
suggested_fn = utils.sanitize_filename(suggested_fn)