fixed 自动登录无法关闭窗口

This commit is contained in:
LittleBoy 2024-11-13 01:26:32 +08:00
parent 3c0d0f4608
commit 5b6b615bd2
6 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -275,7 +275,7 @@ namespace AIProofread
// 如果是 // 如果是
//var shouldCheckSaved = ext.EndsWith(".wps") || doc.Paragraphs.Count < 200 || doc.Tables.Count < 20; //var shouldCheckSaved = ext.EndsWith(".wps") || doc.Paragraphs.Count < 200 || doc.Tables.Count < 20;
// !shouldCheckSaved && // !shouldCheckSaved &&
if (!documentInfo.Saved()) if (!documentInfo.Saved() || !doc.Saved)
{ {
data.Add("code", 1); data.Add("code", 1);
data.Add("message", "请保存文档后再进行校对"); data.Add("message", "请保存文档后再进行校对");

View File

@ -112,6 +112,7 @@ namespace AIProofread.Model
TaskPane.Control.BeginInvoke(new Action(() => TaskPane.Control.BeginInvoke(new Action(() =>
{ {
FormLogin frm = new FormLogin(action); FormLogin frm = new FormLogin(action);
Globals.ThisAddIn.LoginFormList.Add(frm);
frm.ShowDialog(); frm.ShowDialog();
})); }));
} }