|
|
|
@ -46,6 +46,7 @@ ipcMain.on('create-extra-window', (event, arg) => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
async function createMainWindow(app: App) {
|
|
|
|
async function createMainWindow(app: App) {
|
|
|
|
|
|
|
|
if ("setUserTasks" in app) {
|
|
|
|
app.setUserTasks([
|
|
|
|
app.setUserTasks([
|
|
|
|
{
|
|
|
|
{
|
|
|
|
program: process.execPath,
|
|
|
|
program: process.execPath,
|
|
|
|
@ -56,6 +57,7 @@ async function createMainWindow(app: App) {
|
|
|
|
description: 'Open new window'
|
|
|
|
description: 'Open new window'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const windowStateKeeper = (await import('electron-window-state')).default; // should not be statically imported
|
|
|
|
const windowStateKeeper = (await import('electron-window-state')).default; // should not be statically imported
|
|
|
|
|
|
|
|
|
|
|
|
|