1
0

Add minutes commit threshold setting

This commit is contained in:
2025-05-25 21:51:39 +02:00
parent ceffa9ba0a
commit 91ebae3664

View File

@@ -209,6 +209,12 @@
if (threshold > 1000) threshold = 1000;
await window.settingsAPI.setIntelligentCommitThreshold(threshold);
let minutes = parseInt(minutesInput.value, 10);
if (isNaN(minutes)) minutes = 10;
if (minutes < 1) minutes = 1;
if (minutes > 1000) minutes = 60;
await window.settingsAPI.setMinutesCommitThreshold(minutes);
// Dropdowns speichern
const commitSel = document.getElementById('commitModelSelect');
const readmeSel = document.getElementById('readmeModelSelect');