diff --git a/VSGUI/MainWindow.xaml.cs b/VSGUI/MainWindow.xaml.cs index 1a17a3e..b6cd854 100644 --- a/VSGUI/MainWindow.xaml.cs +++ b/VSGUI/MainWindow.xaml.cs @@ -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();