Vanessa 2023-04-18 11:57:19 +08:00
parent b87510558c
commit 4ccee1a4d8
5 changed files with 43 additions and 15 deletions

View file

@ -26,6 +26,7 @@ import {getAllTabs} from "./layout/getAll";
import {getLocalStorage} from "./protyle/util/compatibility";
import {updateEditModeElement} from "./layout/topBar";
import {getSearch} from "./util/functions";
import {hideAllElements} from "./protyle/ui/hideElements";
class App {
constructor() {
@ -50,6 +51,7 @@ class App {
case "readonly":
window.siyuan.config.editor.readOnly = data.data;
updateEditModeElement();
hideAllElements(["util"]);
break;
case "progress":
progressLoading(data);