mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
fix: Destroy tray on quit
This commit is contained in:
@@ -915,6 +915,10 @@ app.on('before-quit', function () {
|
|||||||
// Mark it as a quitting state to make macOS Dock's "Quit" action take effect.
|
// Mark it as a quitting state to make macOS Dock's "Quit" action take effect.
|
||||||
appIsQuitting = true;
|
appIsQuitting = true;
|
||||||
disposeOverlay();
|
disposeOverlay();
|
||||||
|
if (tray) {
|
||||||
|
tray.destroy();
|
||||||
|
tray = null;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on('window-all-closed', function () {
|
app.on('window-all-closed', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user