manager: only check update for enabled module

This commit is contained in:
weishu
2023-06-30 23:49:11 +08:00
parent 68a670ad63
commit 77a1c1f799

View File

@@ -107,7 +107,7 @@ class ModuleViewModel : ViewModel() {
}
fun checkUpdate(m: ModuleInfo, callback: (String?) -> Unit) {
if (m.updateJson.isEmpty()) {
if (m.updateJson.isEmpty() || m.remove || m.update || !m.enabled) {
callback(null)
return
}