don't try to update all plugins

master
Andrew Dolgov 2 years ago
parent 15f9cb708e
commit 85f411d688
  1. 5
      classes/pref/prefs.php
  2. 2
      js/PrefHelpers.js

@ -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)]);
}
}
}

@ -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>
`,
});

Loading…
Cancel
Save