From 0cf76d23aa122ab2f42fc05aae3d2e6c69548d57 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Fri, 4 Feb 2022 02:49:56 -0800 Subject: [PATCH] setTheme will not run on init if no theme is applied --- src/renderer/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index d6e93df7..db61500b 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -594,8 +594,8 @@ const app = new Vue({ }, async init() { let self = this - if (this.cfg.visual.theme != "default.less" || this.cfg.visual.theme != "") { - this.setTheme() + if (this.cfg.visual.theme != "default.less" && this.cfg.visual.theme != "") { + this.setTheme(this.cfg.visual.theme) } this.setLz(this.cfg.general.language) this.setLzManual() @@ -855,6 +855,7 @@ const app = new Vue({ }, 500) }, setTheme(theme = "") { + console.log(theme) if (this.cfg.visual.theme == "") { this.cfg.visual.theme = "default.less" }