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:
committed by
GitHub
parent
62df30ed6c
commit
38068eeaac
@@ -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..."
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user