Commit 4cd276bc authored by fukino's avatar fukino Committed by Commit bot

Add fixed children of Google Drive in the directory tree only once.

BUG=410215
TEST=manually tested.

Review URL: https://codereview.chromium.org/546343002

Cr-Commit-Position: refs/heads/master@{#293841}
parent 2fe81bc3
......@@ -506,7 +506,7 @@ VolumeItem.prototype.handleClick = function(e) {
*/
VolumeItem.prototype.updateSubDirectories = function(recursive) {
// Drive volume has children including fake entries (offline, recent, etc...).
if (this.isDrive()) {
if (this.isDrive() && !this.hasChildren) {
var entries = [this.entry];
if (this.parentTree_.fakeEntriesVisible_) {
for (var key in this.volumeInfo.fakeEntries)
......
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