Un-deprecate :download-remove --all

This commit is contained in:
Florian Bruhin 2016-03-14 19:11:41 +01:00
parent 41b6f68fd7
commit 60c293846f
3 changed files with 4 additions and 4 deletions

View File

@ -38,6 +38,8 @@ Changed
- `general -> editor` can now also handle `{}` inside another argument (e.g. to open `vim` via `termite`)
- Improved performance when scrolling with many tabs open.
- Shift-Insert now also pastes primary selection for prompts.
- `:download-remove --all` got un-deprecated to provide symmetry with
`:download-cancel --all`. It does the same as `:download-clear`.
Fixed
~~~~~

View File

@ -196,7 +196,7 @@ Syntax: +:download-remove [*--all*]+
Remove the last/[count]th download from the list.
==== optional arguments
* +*-a*+, +*--all*+: Deprecated argument for removing all finished downloads.
* +*-a*+, +*--all*+: Remove all finished downloads.
==== count
The index of the download to remove.

View File

@ -1102,12 +1102,10 @@ class DownloadManager(QAbstractListModel):
"""Remove the last/[count]th download from the list.
Args:
all_: Deprecated argument for removing all finished downloads.
all_: Remove all finished downloads.
count: The index of the download to remove.
"""
if all_:
message.warning(self._win_id, ":download-remove --all is "
"deprecated - use :download-clear instead!")
self.download_clear()
else:
try: