fix #2 修复程序标题显示逻辑错误问题

This commit is contained in:
一二三 2024-07-20 21:53:13 +08:00
parent 87d3adc4f8
commit d4c925c9b9

View File

@ -25,6 +25,7 @@ mainForm.release = function(){
collectgarbage("collect");
}
var frmChild = mainForm.loadForm("\dlg\searchForm.aardio");
var g_mainform_text_default = mainForm.text;
//菜单控件初始化
g_teMenus = teMenu.TeMenu(mainForm.plus);
@ -80,6 +81,7 @@ g_teMenus.openFile = function(ctrl){
return function(){
var t = teUtils.getTxtTableData();
if(t){
mainForm.text = g_mainform_text_default;
mainForm.text += "[ " + teUtils.getCurFilePath() + " ]";
g_teMenus.newFile();
mainForm.g_flexcell.AutoRedraw = false;
@ -92,6 +94,7 @@ g_teMenus.openFile = function(ctrl){
mainForm.g_flexcell.Refresh();
collectgarbage("collect");
collectgarbage("collect");
showModifyStyle();
}
}
}