Merge pull request 'Open the menu bar popover on dock activate' (#22) from 21 into main

Reviewed-on: https://git.internal.vyntehome.com/vynte/vynte-connect/pulls/22
Reviewed-by: Ishan Karmakar <ishan.karmakar24@gmail.com>
This commit was merged in pull request #22.
This commit is contained in:
2026-06-03 23:18:15 -05:00
+7 -3
View File
@@ -45,11 +45,15 @@ app.on('window-all-closed', () => {
});
app.on('activate', () => {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) {
if (!window || window.isDestroyed()) {
createWindow();
}
if (!tray) {
createTray();
}
showWindow();
});
// In this file you can include the rest of your app's specific main process