mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +01:00
This commit is contained in:
parent
6b6ce37ca2
commit
76141021d0
16 changed files with 67 additions and 45 deletions
|
|
@ -6,6 +6,7 @@ import {resizeTopBar} from "../layout/util";
|
|||
/// #endif
|
||||
import {Constants} from "../constants";
|
||||
import {setStorageVal} from "../protyle/util/compatibility";
|
||||
import {getAllEditor} from "../layout/getAll";
|
||||
|
||||
export const uninstall = (app: App, name: string, isUninstall = false) => {
|
||||
app.plugins.find((plugin: Plugin, index) => {
|
||||
|
|
@ -61,6 +62,10 @@ export const uninstall = (app: App, name: string, isUninstall = false) => {
|
|||
});
|
||||
// rm plugin
|
||||
app.plugins.splice(index, 1);
|
||||
// rm protyle toolbar
|
||||
getAllEditor().forEach(editor => {
|
||||
editor.protyle.toolbar.update(editor.protyle);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue