mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Fix: Restore minimized window on second instance
This commit is contained in:
parent
fb6b11d154
commit
bf0d7cd300
@ -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?.();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user