Skip to content

Commit cd6afc4

Browse files
niksedkclaude
andcommitted
BatchConvert: persist settings when window is closed via X/Escape
The target format and function options were only saved by the Done and Convert buttons. Closing the window any other way lost them - especially in /batchconvertui mode, where the batch window is the main window and nothing else flushes settings to disk on exit (in the embedded flow the main window's close handler masked this). Fixes #11699 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent b719698 commit cd6afc4

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)