[marketplace] Change the update check scheme for pre-installed plugins.

This commit is contained in:
AlexeyMatveev686
2023-05-05 11:51:28 +03:00
parent b0dc888e82
commit 39bb4a81d3

View File

@ -684,7 +684,7 @@ function createPluginDiv(plugin, bInstalled) {
let bHasUpdate = false;
let bRemoved = (installed && installed.removed);
if (bCheckUpdate && installed && plugin) {
if (bCheckUpdate && installed && installed.canRemoved && plugin) {
const installedV = getPluginVersion(installed.obj.version);
const lastV = getPluginVersion(plugin.version);
if (lastV > installedV) {
@ -724,6 +724,7 @@ function createPluginDiv(plugin, bInstalled) {
};
function onClickInstall(target, event) {
// click install button
event.stopImmediatePropagation();
// click install button
// we should do that because we have some problem when desctop is loading plugin