修正windows下无法保存的问题

This commit is contained in:
yhy
2026-08-30 08:46:04 +08:00
parent 3702527613
commit 455059eebe
12 changed files with 147 additions and 32 deletions
+7
View File
@@ -25,6 +25,9 @@ export function registerLecturePrefsScripts(win: Window) {
const mineruPathInput = doc.getElementById(
"chatpapers-pref-mineru-path",
) as HTMLInputElement | null;
const lectureDataDirInput = doc.getElementById(
"chatpapers-pref-lecture-data-dir",
) as HTMLInputElement | null;
const hint = doc.getElementById("chatpapers-pref-tts-hint");
const piperBox = doc.getElementById("chatpapers-pref-piper-box");
@@ -83,5 +86,9 @@ export function registerLecturePrefsScripts(win: Window) {
setPref("mineruPath", mineruPathInput.value);
});
lectureDataDirInput?.addEventListener("change", () => {
setPref("lectureDataDir", lectureDataDirInput.value.trim());
});
updateHint();
}