Use source video folder when saving hard-sub vid - thx LeonCheung :)

Work on #7737
This commit is contained in:
Nikolaj Olsson 2023-12-14 18:21:57 +01:00
parent e7806e8279
commit 056cac00b8

View File

@ -335,7 +335,13 @@ namespace Nikse.SubtitleEdit.Forms
var oldFontSizeEnabled = numericUpDownFontSize.Enabled;
numericUpDownFontSize.Enabled = false;
using (var saveDialog = new SaveFileDialog { FileName = SuggestNewVideoFileName(), Filter = "MP4|*.mp4|Matroska|*.mkv|WebM|*.webm", AddExtension = true })
using (var saveDialog = new SaveFileDialog
{
FileName = SuggestNewVideoFileName(),
Filter = "MP4|*.mp4|Matroska|*.mkv|WebM|*.webm",
AddExtension = true ,
InitialDirectory = Path.GetDirectoryName(_inputVideoFileName),
})
{
if (comboBoxVideoEncoding.Text == "prores_ks")
{