Skip to content

BatchConvert: persist settings when window is closed via X/Escape#12071

Merged
niksedk merged 1 commit into
mainfrom
fix/batchconvert-persist-on-close
Jul 2, 2026
Merged

BatchConvert: persist settings when window is closed via X/Escape#12071
niksedk merged 1 commit into
mainfrom
fix/batchconvert-persist-on-close

Conversation

@niksedk

@niksedk niksedk commented Jul 2, 2026

Copy link
Copy Markdown
Member

Fixes #11699.

The batch convert window's SaveSettings() (target format, active functions, and all function-panel options) was only invoked from the Done and Convert buttons. Closing the window via the X button or Escape ran OnClosing, which only records the window position in memory.

In the embedded flow this was masked, because the main window's close handler flushes settings to disk later. But with /batchconvertui, the batch convert window is the main window and the app exits without any flush — so the selected target format (and any option changes) were lost unless the user happened to click Convert or Done in that session. This matches the "sometimes remembered, sometimes not" behavior in the issue.

Fix: call SaveSettings() from OnClosing, covering both modes.

Notes from the analysis:

  • The output folder was never affected: the settings sub-dialog already writes it and calls Se.SaveSettings() on OK.
  • The EBU STL header/justification chosen via the target-format settings dialog live in runtime-only properties and are not persisted at all (also not in SE-embedded mode). Left out of this PR as a separate design decision.

🤖 Generated with Claude Code

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>
@niksedk niksedk merged commit c36a34e into main Jul 2, 2026
2 of 3 checks passed
@niksedk niksedk deleted the fix/batchconvert-persist-on-close branch July 2, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/batchconvertui doesn't remember output folder and format settings after reopening the application

1 participant