Skip to content

Commit 632c8a0

Browse files
committed
Fix content management
1 parent db223f2 commit 632c8a0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

flutter-idea/src/io/flutter/view/EmbeddedBrowser.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,13 @@ public void openPanel(ContentManager contentManager, String tabName, DevToolsUrl
102102

103103
contentManager.removeAllContents(false);
104104

105-
// I don't understand this part. Does this become significant when multiple tabs?
106-
//if (contents.get(tabName) != null) {
107-
// contents.remove(tabName);
108-
//}
109105
for (final String otherTabName: tabs.keySet()) {
110106
if (otherTabName.equals(tabName)) {
111107
continue;
112108
}
113109
final BrowserTab browserTab = tabs.get(otherTabName);
114110
contentManager.addContent(browserTab.content);
115111
}
116-
//final Content previousContent = contents.get(tabName);
117-
//if (previousContent != null) {
118-
// contentManager.setSelectedContent(previousContent, true);
119-
// return;
120-
//}
121112

122113
tab.content = contentManager.getFactory().createContent(null, tabName, false);
123114
tab.content.setComponent(component);

0 commit comments

Comments
 (0)