feat(settings): add delete_undo_enabled toggle

This commit is contained in:
Will Miao
2026-08-11 14:08:55 +08:00
parent 0bf87f9092
commit eb0f6dd3b6
4 changed files with 251 additions and 0 deletions
+6
View File
@@ -1111,6 +1111,12 @@ export class SettingsManager {
includeTriggerWordsCheckbox.checked = state.global.settings.include_trigger_words || false;
}
// Set delete undo setting (defaults to enabled)
const deleteUndoEnabledCheckbox = document.getElementById('deleteUndoEnabled');
if (deleteUndoEnabledCheckbox) {
deleteUndoEnabledCheckbox.checked = state.global.settings.delete_undo_enabled ?? true;
}
// Set lora syntax format
const loraSyntaxFormatSelect = document.getElementById('loraSyntaxFormat');
if (loraSyntaxFormatSelect) {