1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-23 11:35:25 -04:00

core/network: avoid endless probing when no network backend is present

This commit is contained in:
bbedward
2026-06-22 13:08:49 -04:00
parent b0edccb80e
commit 556c0819c4
3 changed files with 32 additions and 14 deletions
+6 -4
View File
@@ -235,7 +235,7 @@ Singleton {
}
}
const shouldShowOsd = brightnessInitialized && anyDeviceBrightnessChanged;
const shouldShowOsd = brightnessInitialized && anyDeviceBrightnessChanged && !suppressOsd;
if (!brightnessInitialized) {
brightnessInitialized = true;
@@ -810,10 +810,11 @@ Singleton {
if (rescanAttempt < 3) {
interval = rescanAttempt === 1 ? 5000 : 8000;
restart();
} else {
rescanAttempt = 0;
interval = 3000;
return;
}
rescanAttempt = 0;
interval = 3000;
osdSuppressTimer.restart();
}
}
@@ -821,6 +822,7 @@ Singleton {
target: Quickshell
function onScreensChanged() {
suppressOsd = true;
screenChangeRescanTimer.rescanAttempt = 0;
screenChangeRescanTimer.interval = 3000;
screenChangeRescanTimer.restart();