Un-deprecate :download-remove --all
This commit is contained in:
parent
41b6f68fd7
commit
60c293846f
@ -38,6 +38,8 @@ Changed
|
|||||||
- `general -> editor` can now also handle `{}` inside another argument (e.g. to open `vim` via `termite`)
|
- `general -> editor` can now also handle `{}` inside another argument (e.g. to open `vim` via `termite`)
|
||||||
- Improved performance when scrolling with many tabs open.
|
- Improved performance when scrolling with many tabs open.
|
||||||
- Shift-Insert now also pastes primary selection for prompts.
|
- 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
|
Fixed
|
||||||
~~~~~
|
~~~~~
|
||||||
|
@ -196,7 +196,7 @@ Syntax: +:download-remove [*--all*]+
|
|||||||
Remove the last/[count]th download from the list.
|
Remove the last/[count]th download from the list.
|
||||||
|
|
||||||
==== optional arguments
|
==== optional arguments
|
||||||
* +*-a*+, +*--all*+: Deprecated argument for removing all finished downloads.
|
* +*-a*+, +*--all*+: Remove all finished downloads.
|
||||||
|
|
||||||
==== count
|
==== count
|
||||||
The index of the download to remove.
|
The index of the download to remove.
|
||||||
|
@ -1102,12 +1102,10 @@ class DownloadManager(QAbstractListModel):
|
|||||||
"""Remove the last/[count]th download from the list.
|
"""Remove the last/[count]th download from the list.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
all_: Deprecated argument for removing all finished downloads.
|
all_: Remove all finished downloads.
|
||||||
count: The index of the download to remove.
|
count: The index of the download to remove.
|
||||||
"""
|
"""
|
||||||
if all_:
|
if all_:
|
||||||
message.warning(self._win_id, ":download-remove --all is "
|
|
||||||
"deprecated - use :download-clear instead!")
|
|
||||||
self.download_clear()
|
self.download_clear()
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user