From 91ebae3664fff863b29be20f35063f5cd296c594 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 25 May 2025 21:51:39 +0200 Subject: [PATCH] Add minutes commit threshold setting --- settings.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/settings.html b/settings.html index 55f3bd6..62aa27a 100644 --- a/settings.html +++ b/settings.html @@ -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');