moved reloadStyle position in init

This commit is contained in:
booploops 2022-04-11 17:34:49 -07:00
parent 4c0f66ac75
commit 2a01b11ace

View file

@ -581,6 +581,9 @@ const app = new Vue({
if (this.cfg.visual.theme != "default.less" && this.cfg.visual.theme != "") { if (this.cfg.visual.theme != "default.less" && this.cfg.visual.theme != "") {
this.setTheme(this.cfg.visual.theme) this.setTheme(this.cfg.visual.theme)
} }
if (this.cfg.visual.styles.length != 0) {
this.reloadStyles()
}
if (this.platform == "darwin") { if (this.platform == "darwin") {
this.chrome.windowControlPosition = "left" this.chrome.windowControlPosition = "left"
@ -899,9 +902,6 @@ const app = new Vue({
this.$forceUpdate() this.$forceUpdate()
}, 500) }, 500)
ipcRenderer.invoke("renderer-ready", true) ipcRenderer.invoke("renderer-ready", true)
if (this.cfg.visual.styles.length != 0) {
this.reloadStyles()
}
document.querySelector("#LOADER").remove() document.querySelector("#LOADER").remove()
if (this.cfg.general.themeUpdateNotification) { if (this.cfg.general.themeUpdateNotification) {
this.checkForThemeUpdates() this.checkForThemeUpdates()