1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

better checks before saying SUCCESS (#550)

This commit is contained in:
Massimo Branchini
2025-10-25 18:43:09 +02:00
committed by GitHub
parent 62df30ed6c
commit 38068eeaac

View File

@@ -271,6 +271,12 @@ Singleton {
if (root.isChecking) { if (root.isChecking) {
return "ERROR: already checking" return "ERROR: already checking"
} }
if (!distributionSupported) {
return "ERROR: distribution not supported"
}
if (!pkgManager && !updChecker) {
return "ERROR: update checker not available"
}
root.checkForUpdates() root.checkForUpdates()
return "SUCCESS: Now checking..." return "SUCCESS: Now checking..."
} }