hide mac dock icon on auto-launch

This commit is contained in:
Abhinav 2023-08-10 15:28:05 +05:30
parent 29e8bd9dcb
commit dd93f578e1

View file

@ -31,6 +31,9 @@ export async function createWindow(): Promise<BrowserWindow> {
transparent: true,
show: false,
});
if (isPlatform('mac') && wasAutoLaunched) {
app.dock.hide();
}
if (!wasAutoLaunched) {
splash.maximize();
splash.show();