Commit 018f70d4 authored by Sergei Datsenko's avatar Sergei Datsenko Committed by Commit Bot

Prefer 'unpinned' as a default view of mixed states

If we select several files some of which are pinned and some not, show
overall state as unpinned as it's less confusing.

BUG=chromium:875473

Change-Id: I2d1cfe6b901b39bf2f20a8d1c766c405df22c565
Reviewed-on: https://chromium-review.googlesource.com/c/1343467Reviewed-by: default avatarSam McNally <sammc@chromium.org>
Commit-Queue: Sergei Datsenko <dats@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609606}
parent 613b4307
......@@ -1503,7 +1503,7 @@ CommandHandler.COMMANDS_['toggle-pinned'] = /** @type {Command} */ ({
// flickering.
if (actionsModel) {
event.command.setHidden(actionsModel && !action);
event.command.checked = !!offlineNotNeededAction;
event.command.checked = !!offlineNotNeededAction && !saveForOfflineAction;
}
}
});
......
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