From cd3c0e084d1352a5b16dec31d521b9f9d2d2647f Mon Sep 17 00:00:00 2001 From: oc Date: Wed, 10 Jul 2019 23:41:00 +0800 Subject: [PATCH] hideStatusBar editor --- libs/control.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/control.js b/libs/control.js index 3823e105..081a82ec 100644 --- a/libs/control.js +++ b/libs/control.js @@ -2368,6 +2368,7 @@ control.prototype._updateStatusBar_setToolboxIcon = function () { } control.prototype.showStatusBar = function () { + if (main.mode == 'editor') return; if (core.domStyle.showStatusBar) return; var statusItems = core.dom.status; core.domStyle.showStatusBar = true; @@ -2380,6 +2381,8 @@ control.prototype.showStatusBar = function () { } control.prototype.hideStatusBar = function (showToolbox) { + if (main.mode == 'editor') return; + // 如果原本就是隐藏的,则先显示 if (!core.domStyle.showStatusBar) this.showStatusBar();