Commit 2b6087d1 authored by Isabella Scalzi's avatar Isabella Scalzi Committed by Commit Bot

[quickview] Add check-select support to get-info context menu

Quick View can now open when more than one file is selected. Change
the canExecute code of the |get-info| context menu command to allow
opening Quick View from the context menu when the number of file
selections in the file list is 1 or more.

Test: Tests added in CL:2015470 and CL:2015903
Bug: 1038799
Change-Id: Id384c256fbc5cce55a12fde8c7f8b84bc45706b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2012370Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734469}
parent ccfdc8b2
...@@ -1502,7 +1502,7 @@ CommandHandler.COMMANDS_['get-info'] = new class extends Command { ...@@ -1502,7 +1502,7 @@ CommandHandler.COMMANDS_['get-info'] = new class extends Command {
return; return;
} }
event.canExecute = entries.length === 1; event.canExecute = entries.length >= 1;
event.command.setHidden(false); event.command.setHidden(false);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment