Skip to content

Fix "Adjust timings" always re-checked in STT post-processing#11282

Merged
niksedk merged 1 commit into
mainfrom
fix-11275-adjust-timings-always-on
May 30, 2026
Merged

Fix "Adjust timings" always re-checked in STT post-processing#11282
niksedk merged 1 commit into
mainfrom
fix-11275-adjust-timings-always-on

Conversation

@niksedk
Copy link
Copy Markdown
Member

@niksedk niksedk commented May 30, 2026

@
Fixes #11275

Problem

In the Speech-to-text post-processing dialog, every option remembers its last state on reopen except Adjust timings, which is always checked.

Root cause

The "Adjust timings" setting (WhisperAutoAdjustTimings) is mirrored by an in-memory property DoAdjustTimings on the main SpeechToTextViewModel:

  • LoadSettings() loads it from the setting when the window opens.
  • SaveSettings() writes it back to the setting on close.

Unlike the other post-processing options, DoAdjustTimings has no checkbox on the main window — the only place to toggle it is the post-processing dialog, which writes the setting directly and never updates DoAdjustTimings. So after the user unchecks it in the dialog, the main windows stale DoAdjustTimings (default true) overwrites the setting again on the next SaveSettings(), and the box reappears checked.

Fix

When the post-processing dialog is accepted, also sync the in-memory mirror so it cant clobber the user choice.

🤖 Generated with Claude Code
@

The post-processing dialog wrote WhisperAutoAdjustTimings directly, but
the main view model keeps a stale in-memory mirror (DoAdjustTimings) that
SaveSettings() writes back on close, clobbering the user choice. Sync the
mirror when the dialog is accepted.

Fixes #11275

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the Speech-to-text post-processing dialog so the “Adjust timings” checkbox state persists correctly and is not overwritten by the parent view model’s stale in-memory setting.

Changes:

  • Syncs DoAdjustTimings from the post-processing dialog value when OK is pressed.
  • Keeps subsequent SaveSettings() calls from clobbering WhisperAutoAdjustTimings.

@niksedk niksedk merged commit 3eb0238 into main May 30, 2026
3 of 4 checks passed
@niksedk niksedk deleted the fix-11275-adjust-timings-always-on branch May 30, 2026 15:21
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.

"Adjust timings" is always on in Text to speech post-processing

2 participants