fix #2 修复程序标题显示逻辑错误问题
This commit is contained in:
parent
87d3adc4f8
commit
d4c925c9b9
|
@ -25,6 +25,7 @@ mainForm.release = function(){
|
||||||
collectgarbage("collect");
|
collectgarbage("collect");
|
||||||
}
|
}
|
||||||
var frmChild = mainForm.loadForm("\dlg\searchForm.aardio");
|
var frmChild = mainForm.loadForm("\dlg\searchForm.aardio");
|
||||||
|
var g_mainform_text_default = mainForm.text;
|
||||||
|
|
||||||
//菜单控件初始化
|
//菜单控件初始化
|
||||||
g_teMenus = teMenu.TeMenu(mainForm.plus);
|
g_teMenus = teMenu.TeMenu(mainForm.plus);
|
||||||
|
@ -80,6 +81,7 @@ g_teMenus.openFile = function(ctrl){
|
||||||
return function(){
|
return function(){
|
||||||
var t = teUtils.getTxtTableData();
|
var t = teUtils.getTxtTableData();
|
||||||
if(t){
|
if(t){
|
||||||
|
mainForm.text = g_mainform_text_default;
|
||||||
mainForm.text += "[ " + teUtils.getCurFilePath() + " ]";
|
mainForm.text += "[ " + teUtils.getCurFilePath() + " ]";
|
||||||
g_teMenus.newFile();
|
g_teMenus.newFile();
|
||||||
mainForm.g_flexcell.AutoRedraw = false;
|
mainForm.g_flexcell.AutoRedraw = false;
|
||||||
|
@ -92,6 +94,7 @@ g_teMenus.openFile = function(ctrl){
|
||||||
mainForm.g_flexcell.Refresh();
|
mainForm.g_flexcell.Refresh();
|
||||||
collectgarbage("collect");
|
collectgarbage("collect");
|
||||||
collectgarbage("collect");
|
collectgarbage("collect");
|
||||||
|
showModifyStyle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user