From 7b0c79c5ee0dfc40e4f4096c1c8674c0c0847973 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Thu, 25 Jul 2024 16:06:09 +0200 Subject: [PATCH] Fix for export custom text file name - thx Oliver :) --- Changelog.txt | 4 +++- src/ui/Forms/Main.cs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 790e7c0d0..b1a6fd531 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -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 diff --git a/src/ui/Forms/Main.cs b/src/ui/Forms/Main.cs index c1f05116a..d354c5fc9 100644 --- a/src/ui/Forms/Main.cs +++ b/src/ui/Forms/Main.cs @@ -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 =