perf: Improves window creation speed

This commit is contained in:
MystiPanda
2023-12-08 13:10:35 +08:00
parent d64bdf02de
commit 6b7465a4b0
2 changed files with 11 additions and 15 deletions

View File

@@ -71,6 +71,11 @@ const Layout = () => {
break;
}
});
setTimeout(() => {
void appWindow.unminimize();
void appWindow.show();
void appWindow.setFocus();
}, 50);
}, []);
useEffect(() => {