Update docs/lint

This commit is contained in:
Florian Bruhin 2020-07-30 21:44:13 +02:00
parent 5a4708cc42
commit 5867a9982c
3 changed files with 7 additions and 4 deletions

View File

@ -59,6 +59,9 @@ Added
between the devtools and web page.
- New `--target private-window` argument, which can be used to open a private
window in an existing instance from the commandline.
- The `:download-open` command now has a new `--dir` flag which can be used to
open the directory containing the downloaded file. An entry to do the same
was also added to the context menu.
Fixed
~~~~~

View File

@ -480,8 +480,9 @@ If no specific command is given, this will use the system's default application
present, the filename is automatically appended to the
cmdline.
==== optional arguments
* +*-d*+, +*--dir*+: Open the file's directory instead
* +*-d*+, +*--dir*+: Whether to open the file's directory instead.
==== count
The index of the download to open.

View File

@ -148,9 +148,8 @@ class DownloadView(QListView):
elif item.done:
if item.successful:
actions.append(("Open", item.open_file))
actions.append(("Open directory",
functools.partial(item.open_file,
open_dir=True, cmdline=None)))
actions.append(("Open directory", functools.partial(
item.open_file, open_dir=True, cmdline=None)))
else:
actions.append(("Retry", item.try_retry))
actions.append(("Remove", item.remove))