修复去设置页面后背景变不回来(之前没修好)

This commit is contained in:
MrZ626
2020-11-12 21:33:22 +08:00
parent 7fe275f168
commit 0a99fb8459
3 changed files with 9 additions and 1 deletions

View File

@@ -26,12 +26,12 @@ end
function BG.set(background)
if background==BG.cur or not SETTING.bg then return end
BG.discard()
BG.cur=background
background=BGlist[background]
if not background then
LOG.print("No BG called"..background,"warn")
return
end
BG.cur=background
BG.init= background.init or NULL
BG.resize= background.resize or NULL