Skip to content

Commit

Permalink
stop while folderBrowserDialog1 is canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
yfdyh000 committed Mar 26, 2022
1 parent 96a3b2a commit 09d9450
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/IME WL Converter Win/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ private void btnConvert_Click(object sender, EventArgs e)
{
outputDir = folderBrowserDialog1.SelectedPath;
}
else
{
ShowStatusMessage("请选择词库保存的路径,否则将无法进行词库导出", true);
return;
}
}
mainBody = new MainBody();
mainBody.SelectedWordRankGenerater = wordRankGenerater;
Expand Down
2 changes: 2 additions & 0 deletions src/ImeWlConverterCore/MainBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ public void Convert(IList<string> filePathes, string outputDir)
{
ProcessNotice?.Invoke(fileProcessed + "/" + fileCount + "\t" + Path.GetFileName(file) + "\t处理时发生异常:" +
ex.Message + "\r\n");
count = c;
this.timer.Stop();
}
}
count = c;
Expand Down

0 comments on commit 09d9450

Please sign in to comment.