mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 08:24:06 +01:00
This commit is contained in:
parent
7154879ddc
commit
806ca9f213
3 changed files with 9 additions and 1 deletions
|
|
@ -51,6 +51,8 @@ export const uninstall = (app: App, name: string, isUninstall: boolean) => {
|
|||
// rm dock
|
||||
const docksKeys = Object.keys(plugin.docks);
|
||||
docksKeys.forEach(key => {
|
||||
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key].show =
|
||||
!!document.querySelector(`.dock__item[data-type="${key}"]`)?.classList.contains("dock__item--active");
|
||||
if (Object.keys(window.siyuan.layout.leftDock.data).includes(key)) {
|
||||
window.siyuan.layout.leftDock.remove(key);
|
||||
} else if (Object.keys(window.siyuan.layout.rightDock.data).includes(key)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue