auto-git:
[change] settings.html
This commit is contained in:
@@ -115,12 +115,14 @@
|
|||||||
await window.settingsAPI.setSkipPrompt(cbSkip.checked);
|
await window.settingsAPI.setSkipPrompt(cbSkip.checked);
|
||||||
// SkyMode haben wir ja schon beim Change gesetzt
|
// SkyMode haben wir ja schon beim Change gesetzt
|
||||||
|
|
||||||
// NEU: Speichere Threshold & Dropdowns
|
// Threshold speichern (immer Wert aus Feld nehmen!)
|
||||||
let threshold = parseInt(thresholdInput.value, 10);
|
let threshold = parseInt(thresholdInput.value, 10);
|
||||||
if (isNaN(threshold)) threshold = 10;
|
if (isNaN(threshold)) threshold = 10;
|
||||||
|
if (threshold < 1) threshold = 1;
|
||||||
|
if (threshold > 1000) threshold = 1000;
|
||||||
await window.settingsAPI.setIntelligentCommitThreshold(threshold);
|
await window.settingsAPI.setIntelligentCommitThreshold(threshold);
|
||||||
|
|
||||||
// Nur wenn Dropdowns existieren!
|
// Dropdowns speichern
|
||||||
const commitSel = document.getElementById('commitModelSelect');
|
const commitSel = document.getElementById('commitModelSelect');
|
||||||
const readmeSel = document.getElementById('readmeModelSelect');
|
const readmeSel = document.getElementById('readmeModelSelect');
|
||||||
if (commitSel) await window.settingsAPI.setCommitModel(commitSel.value);
|
if (commitSel) await window.settingsAPI.setCommitModel(commitSel.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user