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

Merge branch 'fix/clear_homepage' into 'wrdp'

ctrl+Alt+d清除桌面会关闭首页的bug修复

See merge request o2oa/o2oa!2022
......@@ -247,6 +247,7 @@ o2.xDesktop.Default = new Class({
taskitem = layout.desktop.createTaskItem(app);
app.taskitem = taskitem;
app.isIndex = true;
this.apps[app.options.appId] = app;
taskitem.textNode.click();
},
......
......@@ -27,7 +27,7 @@ MWF.shortcut = {
clearDesktop: function(){
var keys = Array.clone(Object.keys(layout.desktop.apps));
keys.each(function(key){
layout.desktop.apps[key].close();
if (!layout.desktop.apps[key].isIndex) layout.desktop.apps[key].close();
});
keys = null;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册