downloads: fix docstrings for new return value
This commit is contained in:
parent
029ffe3fc7
commit
b995b9d5da
@ -784,10 +784,7 @@ class DownloadManager(QAbstractListModel):
|
|||||||
**kwargs: passed to get_request().
|
**kwargs: passed to get_request().
|
||||||
|
|
||||||
Return:
|
Return:
|
||||||
If the download could start immediately, (target given),
|
The created DownloadItem.
|
||||||
the created DownloadItem.
|
|
||||||
|
|
||||||
If not, None.
|
|
||||||
"""
|
"""
|
||||||
if not url.isValid():
|
if not url.isValid():
|
||||||
urlutils.invalid_url_error(self._win_id, url, "start download")
|
urlutils.invalid_url_error(self._win_id, url, "start download")
|
||||||
@ -804,10 +801,7 @@ class DownloadManager(QAbstractListModel):
|
|||||||
**kwargs: Passed to fetch_request.
|
**kwargs: Passed to fetch_request.
|
||||||
|
|
||||||
Return:
|
Return:
|
||||||
If the download could start immediately, (target given),
|
The created DownloadItem.
|
||||||
the created DownloadItem.
|
|
||||||
|
|
||||||
If not, None.
|
|
||||||
"""
|
"""
|
||||||
# WORKAROUND for Qt corrupting data loaded from cache:
|
# WORKAROUND for Qt corrupting data loaded from cache:
|
||||||
# https://bugreports.qt.io/browse/QTBUG-42757
|
# https://bugreports.qt.io/browse/QTBUG-42757
|
||||||
|
Loading…
Reference in New Issue
Block a user