mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make starting of application synchronous for Electron main
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
8c2c7b9317
commit
fdeb8260f5
@ -33,13 +33,15 @@ const startElectronApplicationInjectable = getInjectable({
|
||||
...args: unknown[]
|
||||
) => unknown;
|
||||
|
||||
return async (...startApplicationArgs: unknown[]) => {
|
||||
return (...startApplicationArgs: unknown[]) => {
|
||||
beforeAnything();
|
||||
beforeElectronIsReady();
|
||||
|
||||
await whenAppIsReady();
|
||||
return (async () => {
|
||||
await whenAppIsReady();
|
||||
|
||||
return startApplication(...startApplicationArgs);
|
||||
return startApplication(...startApplicationArgs);
|
||||
})()
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user