Commit e08ab349 authored by Sam McNally's avatar Sam McNally Committed by Commit Bot

Skip updating quickview if the new selected entry is the same as before.

Test: manual
Bug: 889848
Change-Id: I4f7c510e28541bc596c46b8ccd16623dea27fd2b
Reviewed-on: https://chromium-review.googlesource.com/c/1347645Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Sam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610301}
parent 0281622a
...@@ -271,6 +271,9 @@ QuickViewController.prototype.onFileSelectionChanged_ = function(event) { ...@@ -271,6 +271,9 @@ QuickViewController.prototype.onFileSelectionChanged_ = function(event) {
if (this.quickView_ && this.quickView_.isOpened()) { if (this.quickView_ && this.quickView_.isOpened()) {
assert(this.entries_.length > 0); assert(this.entries_.length > 0);
var entry = this.entries_[0]; var entry = this.entries_[0];
if (util.isSameEntry(entry, this.quickViewModel_.getSelectedEntry())) {
return;
}
this.quickViewModel_.setSelectedEntry(entry); this.quickViewModel_.setSelectedEntry(entry);
this.display_(); this.display_();
} }
......
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