Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CjangCjengh committed Oct 31, 2022
1 parent 628d0c3 commit 7acf946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MoeGoe_GUI/MainWin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,8 @@ private void W2V2Model_Click(object sender, EventArgs e)
private void W2V2Path_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
if (!Directory.Exists(W2V2Path.Text))
MessageBox.Show("文件夹不存在", "",
if (!File.Exists(W2V2Path.Text))
MessageBox.Show("文件不存在", "",
MessageBoxButtons.OK, MessageBoxIcon.Error);
else
{
Expand Down

0 comments on commit 7acf946

Please sign in to comment.