perf: Improves window creation speed

This commit is contained in:
MystiPanda committed 2023-12-08 13:10:35 +08:00
1 parent c5855119d8
commit 8b14a5f0d8
2 files changed
+11 -15

No files matched your search

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