Commit 2fe34c99 authored by Tatsuhisa Yamaguchi's avatar Tatsuhisa Yamaguchi Committed by Commit Bot

Allow set-wallpaper command in the toolbar button menu.

Bug: 740842
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I8a0826a93cb36588bda03b5acfbf633c35d8d11e
Reviewed-on: https://chromium-review.googlesource.com/577978Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
Commit-Queue: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488161}
parent c59edd83
...@@ -1607,7 +1607,7 @@ CommandHandler.COMMANDS_['set-wallpaper'] = /** @type {Command} */ ({ ...@@ -1607,7 +1607,7 @@ CommandHandler.COMMANDS_['set-wallpaper'] = /** @type {Command} */ ({
}); });
}, },
canExecute: function(event, fileManager) { canExecute: function(event, fileManager) {
var entries = CommandUtil.getCommandEntries(event.target); var entries = fileManager.getSelection().entries;
if (entries.length === 0) { if (entries.length === 0) {
event.canExecute = false; event.canExecute = false;
event.command.setHidden(true); event.command.setHidden(true);
......
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