fix: 🐛 Abnormal operations cause the program that cannot be closed

This commit is contained in:
viarotel 2024-06-13 19:33:49 +08:00
parent c45cf64d82
commit b9891404f4

View File

@ -115,7 +115,7 @@ export default (mainWindow) => {
checkboxLabel: await t('close.remember'),
})
if (checkboxChecked) {
if (checkboxChecked && [0, 1].includes(response)) {
appStore.set('appCloseCode', response)
}