Skip to content

Commit

Permalink
fix: 🐛 Abnormal operations cause the program that cannot be closed
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Jun 13, 2024
1 parent c45cf64 commit b989140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/events/tray/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default (mainWindow) => {
checkboxLabel: await t('close.remember'),
})

if (checkboxChecked) {
if (checkboxChecked && [0, 1].includes(response)) {
appStore.set('appCloseCode', response)
}

Expand Down

0 comments on commit b989140

Please sign in to comment.