mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +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------');
|
logger.info('------createApp------');
|
||||||
await createApp();
|
await createApp();
|
||||||
} else {
|
} else {
|
||||||
|
logger.info('------curWindow.restore------');
|
||||||
|
if (curWindow.isMinimized?.()) curWindow.restore?.();
|
||||||
|
logger.info('------curWindow.show------');
|
||||||
|
if (!curWindow.isVisible?.()) curWindow.show?.();
|
||||||
logger.info('------curWindow.focus------');
|
logger.info('------curWindow.focus------');
|
||||||
curWindow.focus?.();
|
curWindow.focus?.();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user