mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28: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:
parent
e8d3530b43
commit
9b608d4d24
@ -146,6 +146,10 @@ export function createMainWindow(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.tray === 'start-in-tray') {
|
||||||
|
mainWindow.hide();
|
||||||
|
}
|
||||||
|
|
||||||
const withFocusedWindow = (block: (window: BrowserWindow) => void): void => {
|
const withFocusedWindow = (block: (window: BrowserWindow) => void): void => {
|
||||||
const focusedWindow = BrowserWindow.getFocusedWindow();
|
const focusedWindow = BrowserWindow.getFocusedWindow();
|
||||||
if (focusedWindow) {
|
if (focusedWindow) {
|
||||||
|
Loading…
Reference in New Issue
Block a user