fix: Destroy tray on quit

This commit is contained in:
pa
2026-03-27 15:08:54 +09:00
parent 5f077effcc
commit 0635378cef

View File

@@ -915,6 +915,10 @@ app.on('before-quit', function () {
// Mark it as a quitting state to make macOS Dock's "Quit" action take effect.
appIsQuitting = true;
disposeOverlay();
if (tray) {
tray.destroy();
tray = null;
}
});
app.on('window-all-closed', function () {