ncannasse 7 年之前
父節點
當前提交
78bdbd2009
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hide/ui/View.hx

+ 2 - 2
hide/ui/View.hx

@@ -193,8 +193,8 @@ class View<T> extends hide.comp.Component {
 			return [];
 		return [
 			{ label : "Close", click : close },
-			{ label : "Close Others", click : function() for( v in @:privateAccess ide.views ) if( v != this && v.container.tab.header == container.tab.header ) v.close() },
-			{ label : "Close All", click : function() for( v in @:privateAccess ide.views ) if( v.container.tab.header == container.tab.header ) v.close() },
+			{ label : "Close Others", click : function() for( v in @:privateAccess ide.views.copy() ) if( v != this && v.container.tab.header == container.tab.header ) v.close() },
+			{ label : "Close All", click : function() for( v in @:privateAccess ide.views.copy() ) if( v.container.tab.header == container.tab.header ) v.close() },
 		];
 	}