2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-22 18:18:55 +00:00

Correctly start in tray when both --maximize and --tray start-in-tray are passed (fix #1015) (PR #1079)

Co-authored-by: erythros <erythros.com>
This commit is contained in:
erythros 2020-12-01 19:14:06 -05:00 committed by GitHub
parent e8d3530b43
commit 9b608d4d24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,6 +146,10 @@ export function createMainWindow(
}
}
if (options.tray === 'start-in-tray') {
mainWindow.hide();
}
const withFocusedWindow = (block: (window: BrowserWindow) => void): void => {
const focusedWindow = BrowserWindow.getFocusedWindow();
if (focusedWindow) {