提交 be27fed6 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/homepage_load' into 'develop'

修复全部关闭后主页定位错误的问题

See merge request o2oa/o2oa!874
......@@ -843,8 +843,7 @@ o2.xDesktop.Default = new Class({
if (i && this.apps[keys[i-1]] && this.apps[keys[i-1]].setCurrent){
this.apps[keys[i-1]].setCurrent();
}else{
//if (app.appId!=="Homepage") layout.openApplication(null, "Homepage");
layout.openApplication(null, "Homepage");
this.loadDefaultPage()
}
}
this.checkTaskBarSize();
......
......@@ -405,33 +405,28 @@ MWF.xApplication.Common.Main = new Class({
// });
},
setCurrent: function () {
if (this.desktop.currentApp == this) return true;
if (this.desktop.currentApp) {
this.desktop.currentApp.setUncurrent();
}
// if (layout.viewMode=="Default" && !this.isLoadApplication){
// this.isLoadApplication = true;
// this.load(true);
// } else {
this.window.setCurrent();
if (this.window.isHide) {
if (this.window.isMax) {
this.window.maxSize(function () { this.fireAppEvent("current"); }.bind(this));
} else {
this.window.restore(function () { this.fireAppEvent("current"); }.bind(this));
}
} else {
this.fireAppEvent("current");
}
if (this.taskitem) this.taskitem.selected();
this.desktop.currentApp = this;
this.desktop.appCurrentList.erase(this);
this.desktop.appCurrentList.push(this);
//}
if (this.desktop.currentApp == this) return true;
if (this.desktop.currentApp) {
this.desktop.currentApp.setUncurrent();
}
this.window.setCurrent();
if (this.taskitem) this.taskitem.selected();
this.desktop.currentApp = this;
this.desktop.appCurrentList.erase(this);
this.desktop.appCurrentList.push(this);
if (this.window.isHide) {
if (this.window.isMax) {
this.window.maxSize(function () { this.fireAppEvent("current"); }.bind(this));
} else {
this.window.restore(function () { this.fireAppEvent("current"); }.bind(this));
}
} else {
this.fireAppEvent("current");
}
},
setUncurrent: function () {
if (this.desktop.currentApp == this) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册