don't try to update all plugins

This commit is contained in:
Andrew Dolgov 2021-02-27 17:35:00 +03:00
parent 15f9cb708e
commit 85f411d688
2 changed files with 5 additions and 2 deletions

View File

@ -1191,7 +1191,10 @@ class Pref_Prefs extends Handler_Protected {
if (is_dir("$dir/.git")) {
$plugin_name = basename($dir);
array_push($rv, ["plugin" => $plugin_name, "rv" => $this->_update_plugin($root_dir, $plugin_name)]);
$test = $this->_plugin_needs_update($root_dir, $plugin_name);
if (!empty($test["o"]))
array_push($rv, ["plugin" => $plugin_name, "rv" => $this->_update_plugin($root_dir, $plugin_name)]);
}
}
}

View File

@ -339,7 +339,7 @@ const Helpers = {
</ul>
<footer class="text-center">
${App.FormFields.submit_tag(__("Close this window"))}
${App.FormFields.submit_tag(__("Reload preferences"))}
</footer>
`,
});