mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
bb49855133
commit
6930d48446
4 changed files with 9 additions and 2 deletions
|
|
@ -81,6 +81,7 @@ export const loadPlugin = async (app: App, item: IPluginData) => {
|
|||
styleElement.textContent = item.css;
|
||||
document.head.append(styleElement);
|
||||
afterLoadPlugin(plugin);
|
||||
saveLayout();
|
||||
return plugin;
|
||||
};
|
||||
|
||||
|
|
@ -229,7 +230,6 @@ export const afterLoadPlugin = (plugin: Plugin) => {
|
|||
}], dock.config.position === "RightBottom" ? 1 : 0, dock.config.index);
|
||||
}
|
||||
});
|
||||
saveLayout();
|
||||
/// #endif
|
||||
};
|
||||
|
||||
|
|
@ -242,4 +242,7 @@ export const reloadPlugin = (app: App) => {
|
|||
afterLoadPlugin(item);
|
||||
});
|
||||
});
|
||||
/// #if !MOBILE
|
||||
saveLayout();
|
||||
/// #endif
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue