Fix Disable theme and Lock B.G.'s weird behaviors (#1091)

This commit is contained in:
SweetSea
2024-02-22 10:07:41 +07:00
committed by GitHub
parent 7e1a5805b3
commit 1859e5bb96
4 changed files with 10 additions and 6 deletions

View File

@@ -161,8 +161,12 @@ do-- function applySettings()
if SETTING.bg=='on' then
BG.unlock()
BG.setDefault(SETTING.defaultBG)
if SETTING.lockBG then
BG.lock()
elseif reason=='lockBG' then -- Don't load theme too soon!
THEME.set(THEME.calculate(),GAME.playing)
end
BG.set()
if SETTING.lockBG then BG.lock() end
elseif SETTING.bg=='off' then
BG.unlock()
BG.set('fixColor',SETTING.bgAlpha,SETTING.bgAlpha,SETTING.bgAlpha)