mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Show msg box modal when SE window not focused - thx
jupester :) Fix #8198
This commit is contained in:
parent
0139ec0a75
commit
1171be7919
@ -234,11 +234,11 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
|
||||
|
||||
if (errors.Length > 0)
|
||||
{
|
||||
MessageBox.Show($"{errorCount} error(s)!{Environment.NewLine}{errors}");
|
||||
MessageBox.Show(this, $"{errorCount} error(s)!{Environment.NewLine}{errors}");
|
||||
}
|
||||
|
||||
var fileList = Environment.NewLine + Environment.NewLine + string.Join(Environment.NewLine, _outputBatchFileNames);
|
||||
MessageBox.Show(string.Format(LanguageSettings.Current.AudioToText.XFilesSavedToVideoSourceFolder, listViewInputFiles.Items.Count - errorCount) + fileList);
|
||||
MessageBox.Show(this, string.Format(LanguageSettings.Current.AudioToText.XFilesSavedToVideoSourceFolder, listViewInputFiles.Items.Count - errorCount) + fileList);
|
||||
|
||||
groupBoxInputFiles.Enabled = true;
|
||||
buttonGenerate.Enabled = true;
|
||||
|
@ -386,7 +386,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
|
||||
|
||||
_languageCode = GetLanguage(comboBoxLanguages.Text);
|
||||
|
||||
if (comboBoxModels.Items[comboBoxModels.SelectedIndex] is WhisperModel model &&
|
||||
if (comboBoxModels.Items[comboBoxModels.SelectedIndex] is WhisperModel model &&
|
||||
_languageCode != "en" && IsModelEnglishOnly(model))
|
||||
{
|
||||
var result = MessageBox.Show("English model should only be used with English language." + Environment.NewLine +
|
||||
|
@ -28,6 +28,14 @@ namespace Nikse.SubtitleEdit.Forms.SeMsgBox
|
||||
}
|
||||
}
|
||||
|
||||
public static DialogResult Show(Form form, string text)
|
||||
{
|
||||
using (var msgBox = new MessageBoxForm(text, string.Empty, MessageBoxButtons.OK))
|
||||
{
|
||||
return msgBox.ShowDialog(form);
|
||||
}
|
||||
}
|
||||
|
||||
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons)
|
||||
{
|
||||
using (var msgBox = new MessageBoxForm(text, caption, buttons))
|
||||
|
Loading…
Reference in New Issue
Block a user