ignoring the desktop publish window as well

This commit is contained in:
Felipe Cecagno 2012-05-25 17:47:16 -03:00
parent 4746ba9f91
commit 1c50815570

View File

@ -29,7 +29,9 @@ package org.bigbluebutton.modules.layout.model {
// default is a reserved word in actionscript
[Bindable] public var default_:Boolean = false;
[Bindable] private var windows:Dictionary = new Dictionary();
static private var _ignoredWindows:Array = new Array("PublishWindow",
"VideoWindow", "DesktopPublishWindow");
public function load(vxml:XML):void {
if (vxml != null) {
if (vxml.@name != undefined) {
@ -81,7 +83,7 @@ package org.bigbluebutton.modules.layout.model {
for each (var window:MDIWindow in canvas.windowManager.windowList) {
var layout:WindowLayout = WindowLayout.getLayout(canvas, window);
// for now we will just ignore the video windows
if (layout.name == "PublishWindow" || layout.name == "VideoWindow")
if (layout.name in _ignoredWindows)
continue;
layoutDefinition.windows[layout.name] = layout;
}