1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -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) {
return "ERROR: already checking"
}
if (!distributionSupported) {
return "ERROR: distribution not supported"
}
if (!pkgManager && !updChecker) {
return "ERROR: update checker not available"
}
root.checkForUpdates()
return "SUCCESS: Now checking..."
}