fix(accounts): allow health check during active uploads + toast when already running

This commit is contained in:
Administrator 2026-06-08 03:04:00 +02:00
parent f9aa7f4168
commit 35341b522a

View File

@ -2522,8 +2522,10 @@ async function executeHealthCheck(hosters, _mode) {
}
async function runHealthCheck(mode = 'manual', requestedHosters = null) {
if (healthCheckRunning || (uploading && mode === 'manual')) return [];
// Build check list: all enabled accounts with creds
if (healthCheckRunning) {
if (mode === 'manual') showCopyToast('Account-Check läuft bereits.');
return [];
}
let hosters;
if (Array.isArray(requestedHosters) && requestedHosters.length > 0) {
hosters = requestedHosters;