fix: 朗读引擎储存

This commit is contained in:
HapeLee
2026-06-11 13:34:20 +08:00
parent 6ec686074a
commit 541de1958a
2 changed files with 7 additions and 2 deletions
@@ -478,9 +478,9 @@ object AppConfig : SharedPreferences.OnSharedPreferenceChangeListener {
}
var ttsEngine: String?
get() = appCtx.getPrefString(PreferKey.ttsEngine)
get() = io.legado.app.ui.config.readConfig.ReadConfig.ttsEngine
set(value) {
appCtx.putPrefString(PreferKey.ttsEngine, value)
io.legado.app.ui.config.readConfig.ReadConfig.ttsEngine = value
}
var webPort: Int
@@ -241,4 +241,9 @@ object ReadConfig {
PreferKey.ttsSpeechRate,
5
)
var ttsEngine by prefDelegate<String?>(
PreferKey.ttsEngine,
null
)
}