manager: only check update for enabled module

This commit is contained in:
weishu
2023-06-30 23:49:11 +08:00
parent 0856b718de
commit e6fea652de

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
}