mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -61,6 +61,13 @@ export const uninstall = (app: App, name: string, isReload: boolean) => {
|
||||
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key]) {
|
||||
dockIconElement = document.querySelector(`.dock__item[data-type="${key}"]`);
|
||||
if (dockIconElement) {
|
||||
let index = 0;
|
||||
let previousElement = dockIconElement;
|
||||
while (previousElement.previousElementSibling) {
|
||||
index++;
|
||||
previousElement = previousElement.previousElementSibling;
|
||||
}
|
||||
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key].index = index;
|
||||
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key].show = dockIconElement.classList.contains("dock__item--active");
|
||||
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key].size = {
|
||||
height: parseInt(dockIconElement.getAttribute("data-height")) || null,
|
||||
|
||||
Reference in New Issue
Block a user