SettingsCocoa // Make narration settings effective immediately.

This commit is contained in:
ShikiSuen 2024-02-13 20:53:34 +08:00
parent 903faae51f
commit 21dcb58748
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ public extension SettingsPanesCocoa {
} }
}?.boxed() }?.boxed()
NSStackView.buildSection(width: contentWidth) { NSStackView.buildSection(width: contentWidth) {
UserDef.kReadingNarrationCoverage.render(fixWidth: contentWidth) UserDef.kReadingNarrationCoverage.render(fixWidth: contentWidth) { renderable in
renderable.currentControl?.target = self
renderable.currentControl?.action = #selector(self.updateNarratorSettingsAction(_:))
}
UserDef.kAutoCorrectReadingCombination.render(fixWidth: contentWidth) UserDef.kAutoCorrectReadingCombination.render(fixWidth: contentWidth)
UserDef.kShowHanyuPinyinInCompositionBuffer.render(fixWidth: contentWidth) UserDef.kShowHanyuPinyinInCompositionBuffer.render(fixWidth: contentWidth)
UserDef.kKeepReadingUponCompositionError.render(fixWidth: contentWidth) UserDef.kKeepReadingUponCompositionError.render(fixWidth: contentWidth)