Skip to content

Commit c36a34e

Browse files
authored
Merge pull request #12071 from SubtitleEdit/fix/batchconvert-persist-on-close
BatchConvert: persist settings when window is closed via X/Escape
2 parents b719698 + cd6afc4 commit c36a34e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ui/Features/Tools/BatchConvert/BatchConvertViewModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,6 +2504,11 @@ internal void Onloaded(object? sender, RoutedEventArgs e)
25042504
internal void OnClosing(object? sender, WindowClosingEventArgs e)
25052505
{
25062506
UiUtil.SaveWindowPosition(Window);
2507+
2508+
// Persist target format and function options also when the window is closed via
2509+
// X/Escape - especially important in /batchconvertui mode, where this window is the
2510+
// main window and nothing else flushes settings to disk on exit (#11699).
2511+
SaveSettings();
25072512
}
25082513

25092514
internal void ComboBoxSubtitleFormatChanged()

0 commit comments

Comments
 (0)