Vanessa 2025-11-23 18:47:47 +08:00
parent 3cc93f2425
commit 22565b9006
12 changed files with 84 additions and 216 deletions

View file

@ -38,6 +38,8 @@ import {setLocalShorthandCount} from "./util/noRelyPCFunction";
import {getDockByType} from "./layout/tabUtil";
import {Tag} from "./layout/dock/Tag";
import {updateControlAlt} from "./protyle/util/hotKey";
import {updateAppearance} from "./config/util/updateAppearance";
import {renderSnippet} from "./config/util/snippets";
export class App {
public plugins: import("./plugin").Plugin[] = [];
@ -69,6 +71,12 @@ export class App {
});
if (data) {
switch (data.cmd) {
case "setAppearance":
updateAppearance(data.data);
break;
case "setSnippet":
renderSnippet();
break;
case "setDefRefCount":
setDefRefCount(data.data);
break;