diff --git a/webapp/packages/main/src/index.ts b/webapp/packages/main/src/index.ts index af5204aa9..4d073c5ab 100644 --- a/webapp/packages/main/src/index.ts +++ b/webapp/packages/main/src/index.ts @@ -19,6 +19,10 @@ if (!isSingleInstance) { logger.info('------createApp------'); await createApp(); } else { + logger.info('------curWindow.restore------'); + if (curWindow.isMinimized?.()) curWindow.restore?.(); + logger.info('------curWindow.show------'); + if (!curWindow.isVisible?.()) curWindow.show?.(); logger.info('------curWindow.focus------'); curWindow.focus?.(); }