Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Unified Diff: third_party/WebKit/Source/devtools/front_end/settings/EditFileSystemView.js

Issue 2790743002: DevTools: fix adding excluded folder from settings screen (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/settings/EditFileSystemView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/settings/EditFileSystemView.js b/third_party/WebKit/Source/devtools/front_end/settings/EditFileSystemView.js
index 0051824ba6d66a6ae4ed30f53c1068c34062f825..1a24b50b1ff9c845ceacb849872d95773614e753 100644
--- a/third_party/WebKit/Source/devtools/front_end/settings/EditFileSystemView.js
+++ b/third_party/WebKit/Source/devtools/front_end/settings/EditFileSystemView.js
@@ -92,6 +92,16 @@ Settings.EditFileSystemView = class extends UI.VBox {
return;
this._mappings = [];
+
+ this._excludedFoldersList.clear();
+ this._excludedFolders = [];
+ for (var folder of Workspace.isolatedFileSystemManager.fileSystem(this._fileSystemPath)
+ .excludedFolders()
+ .values()) {
+ this._excludedFolders.push(folder);
+ this._excludedFoldersList.appendItem(folder, true);
+ }
+
if (Runtime.experiments.isEnabled('persistence2'))
return;
@@ -110,14 +120,6 @@ Settings.EditFileSystemView = class extends UI.VBox {
}
}
- this._excludedFoldersList.clear();
- this._excludedFolders = [];
- for (var folder of Workspace.isolatedFileSystemManager.fileSystem(this._fileSystemPath)
- .excludedFolders()
- .values()) {
- this._excludedFolders.push(folder);
- this._excludedFoldersList.appendItem(folder, true);
- }
for (var folder of Workspace.isolatedFileSystemManager.fileSystem(this._fileSystemPath)
.nonConfigurableExcludedFolders()
.values()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698