修复以全屏启动设置与窗口大小检测冲突的问题

pull/1053/head
lyswhut 2022-11-17 18:21:25 +08:00
parent ec2b802912
commit b20886f08a
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ void getSetting().then(setting => {
}
window.i18n.setLanguage(setting['common.langId'])
if ((document.body.clientHeight > window.screen.availHeight || document.body.clientWidth > window.screen.availWidth) && setting['common.windowSizeId'] > 1) {
if (!setting['common.startInFullscreen'] && (document.body.clientHeight > window.screen.availHeight || document.body.clientWidth > window.screen.availWidth) && setting['common.windowSizeId'] > 1) {
void updateSetting({ 'common.windowSizeId': 1 })
}