Deprecate :download-remove --all.

:download-clear should be used instead.
This commit is contained in:
Panagiotis Ktistakis 2015-11-04 01:03:38 +02:00
parent dc06787f83
commit 782f09488a

View File

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