|
|
@@ -231,12 +231,18 @@ o2.xDesktop.Default = new Class({
|
|
|
}
|
|
|
var currentTaskitem = null;
|
|
|
Object.each(this.status.apps, function(appStatus, id){
|
|
|
- var app = { "options": appStatus };
|
|
|
+ var app = {
|
|
|
+ "options": appStatus,
|
|
|
+ "close": function(){
|
|
|
+ this.taskitem.destroy();
|
|
|
+ },
|
|
|
+ "setCurrent": function(){
|
|
|
+ this.taskitem.textNode.click();
|
|
|
+ }
|
|
|
+ };
|
|
|
taskitem = layout.desktop.createTaskItem(app);
|
|
|
app.taskitem = taskitem;
|
|
|
- app.close = function(){
|
|
|
- this.taskitem.destroy();
|
|
|
- }
|
|
|
+
|
|
|
this.apps[appStatus.appId] = app;
|
|
|
if ((this.status.currentApp === appStatus.appId)) currentTaskitem=taskitem;
|
|
|
|