Skip to content

Commit

Permalink
修正简易压制默认分辨率,字幕文件未放入时出现BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
YohoYang committed May 14, 2022
1 parent 2992662 commit 3a625bb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions VSGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1228,15 +1228,18 @@ private void SimpleAutoEncodeButton_Click(object sender, RoutedEventArgs e)
return;
}
}
if (Regex.Matches(simpleresolutionbox.Text.ToUpper(), @"\d+P").Count < 1)
if (simpleresolutionbox.SelectedIndex != 0 && Regex.Matches(simpleresolutionbox.Text.ToUpper(), @"\d+P").Count < 1)
{
MessageBoxApi.Show(LanguageApi.FindRes("resolutionFormatError"), LanguageApi.FindRes("error"));
return;
}
if (!File.Exists(simpleasspathinputbox.Text))
if (simpleasspathinputbox.Text != "")
{
MessageBoxApi.Show(LanguageApi.FindRes("subtitleFileError"), LanguageApi.FindRes("error"));
return;
if (!File.Exists(simpleasspathinputbox.Text))
{
MessageBoxApi.Show(LanguageApi.FindRes("subtitleFileError"), LanguageApi.FindRes("error"));
return;
}
}
//生成groud名
string groupname = CommonApi.GetNewSeed();
Expand Down

0 comments on commit 3a625bb

Please sign in to comment.