mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
parent
0af4540cdf
commit
ba58543a9c
@ -120,6 +120,8 @@ namespace Nikse.SubtitleEdit.Forms.Tts
|
||||
|
||||
private void buttonOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
_subtitle.Paragraphs[_index].Text = TextBoxReGenerate.Text.Trim();
|
||||
|
||||
_libMpv?.Stop();
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
@ -272,12 +272,18 @@ namespace Nikse.SubtitleEdit.Forms.Tts
|
||||
using (var form = new RegenerateAudioClip(_textToSpeech, _subtitle, idx, _engine))
|
||||
{
|
||||
var dr = form.ShowDialog(this);
|
||||
if (dr == DialogResult.OK)
|
||||
if (dr != DialogResult.OK)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
listViewAudioClips.Items[idx].SubItems[5].Text = _subtitle.Paragraphs[idx].Text;
|
||||
|
||||
if (form.FileNameAndSpeedFactor != null)
|
||||
{
|
||||
_fileNames[idx].Filename = form.FileNameAndSpeedFactor.Filename;
|
||||
_fileNames[idx].Factor = form.FileNameAndSpeedFactor.Factor;
|
||||
listViewAudioClips.Items[idx].SubItems[4].Text = $"{(form.FileNameAndSpeedFactor.Factor * 100.0m):0.#}%";
|
||||
listViewAudioClips.Items[idx].SubItems[5].Text = _subtitle.Paragraphs[idx].Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user