Fix for export custom text file name - thx Oliver :)

This commit is contained in:
Nikolaj Olsson 2024-07-25 16:06:09 +02:00
parent a94990f4f4
commit 7b0c79c5ee
2 changed files with 5 additions and 3 deletions

View File

@ -1,12 +1,14 @@
Subtitle Edit Changelog
4.0.8 (xth September 2024) BETA
4.0.8 (xth August 2024) BETA
* NEW:
* Add "Batch mode" for "Generate transparent video with subs" - thx David
* Add "Pixel format" paramter to burn-in - thx Hafran420
* Add new ChatGPT "gpt-4o-mini" model
* Add translation via Groq (api.groq.com)
* Add translation via OpenRouter - thx Nikodim
* Add custom shortcuts for custom export text templates - thx Oliver
* Add WebVTT setting for split of style tags - thx Oliver
* IMPROVED:
* Update Chinese translation - thx nkh0472
* Update Italian translation - thx bovirus

View File

@ -19203,9 +19203,9 @@ namespace Nikse.SubtitleEdit.Forms
var name = template.Split('Æ')[0];
var fileExt = ExportCustomText.GetFileExtension(template);
saveFileDialog1.Title = LanguageSettings.Current.ExportCustomText.SaveSubtitleAs;
if (!string.IsNullOrEmpty(_title))
if (!string.IsNullOrEmpty(_fileName))
{
saveFileDialog1.FileName = Path.GetFileNameWithoutExtension(_title) + fileExt;
saveFileDialog1.FileName = Path.GetFileNameWithoutExtension(_fileName) + fileExt;
}
saveFileDialog1.Filter =