修复切换问题

This commit is contained in:
lyswhut 2023-03-28 08:50:11 +08:00
parent f3ac526b51
commit 202bcf6f54

View File

@ -16,7 +16,7 @@ export default memo(() => {
const setIsAutoTheme = (isHideBgDark: boolean) => {
updateSetting({ 'theme.hideBgDark': isHideBgDark })
void getTheme().then(theme => {
if (theme.id != 'black' || !settingState.setting['common.isAutoTheme']) return
if (theme.id != 'black' && !settingState.setting['common.isAutoTheme']) return
applyTheme(theme)
})
}