mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🐛 The plugin was not executed uninstall() when being uninstalled (#16243)
fix https://github.com/siyuan-note/siyuan/issues/16156
This commit is contained in:
parent
a156dc9671
commit
33d63127b0
3 changed files with 18 additions and 15 deletions
|
|
@ -838,9 +838,6 @@ export const bazaar = {
|
|||
}, response => {
|
||||
this._genMyHTML(bazaarType, app);
|
||||
bazaar._onBazaar(response, bazaarType, ["themes", "icons"].includes(bazaarType));
|
||||
if (bazaarType === "plugins") {
|
||||
uninstall(app, packageName, true);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -923,7 +920,7 @@ export const bazaar = {
|
|||
if (window.siyuan.config.bazaar.petalDisabled) {
|
||||
bazaar.element.querySelectorAll("#configBazaarDownloaded .b3-card").forEach(item => {
|
||||
item.classList.add("b3-card--disabled");
|
||||
uninstall(app, JSON.parse(item.getAttribute("data-obj")).name);
|
||||
uninstall(app, JSON.parse(item.getAttribute("data-obj")).name, false);
|
||||
});
|
||||
} else {
|
||||
bazaar.element.querySelectorAll("#configBazaarDownloaded .b3-card").forEach(item => {
|
||||
|
|
@ -961,7 +958,7 @@ export const bazaar = {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
uninstall(app, dataObj.name);
|
||||
uninstall(app, dataObj.name, false);
|
||||
target.parentElement.querySelector('[data-type="setting"]').classList.add("fn__none");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue