From ba45c627ab893f4a5c1c441747dd7fc4aa06e1c0 Mon Sep 17 00:00:00 2001 From: tcsnzh Date: Mon, 4 Oct 2021 20:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B1=E7=84=A6=E9=9A=90=E8=97=8For=E4=B8=8D?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=B0=8F=E6=8C=89=E9=92=AE=E7=8E=B0=E5=9C=A8?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E5=9C=A8=E6=90=9C=E7=B4=A2=E6=A1=86=E5=87=BA?= =?UTF-8?q?=E7=8E=B0,=E4=B8=94=E5=88=87=E6=8D=A2=E5=88=B0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86=E6=97=B6=E4=B8=80=E5=AE=9A=E4=BC=9A=E9=9A=90?= =?UTF-8?q?=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/App.vue | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 7707e65..88cfa75 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -59,14 +59,6 @@ - - -
+ + +
@@ -340,6 +344,7 @@ export default { showMain: false, options: [], }); + this.setHideOnBlur(true); ipcRenderer.send("changeWindowSize-rubick", { height: getWindowHeight([]), }); @@ -411,6 +416,11 @@ export default { cfg.perf.common.hideOnBlur = !cfg.perf.common.hideOnBlur; this.config = cfg; }, + setHideOnBlur(v) { + let cfg = { ...this.config }; + cfg.perf.common.hideOnBlur = v; + this.config = cfg; + }, }, computed: { ...mapState("main", [