fixed 自动登录无法关闭窗口
This commit is contained in:
parent
3c0d0f4608
commit
5b6b615bd2
Binary file not shown.
@ -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", "请保存文档后再进行校对");
|
||||||
|
@ -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();
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user