We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15a59b1 commit 5226575Copy full SHA for 5226575
src/App.tsx
@@ -109,6 +109,21 @@ const App = memo(() => {
109
changeLanguage(language as any);
110
}, [language]);
111
112
+ useEffect(() => {
113
+ if (!loading) {
114
+ const targetSize = mainWindowSize.current || new LogicalSize(1000, 700);
115
+
116
+ Promise.all([
117
+ appWindow.setResizable(true),
118
+ appWindow.setSize(targetSize),
119
+ ]);
120
121
+ if (!IN_GAME) {
122
+ appWindow.center();
123
+ }
124
125
+ }, [loading]);
126
127
useEffect(() => {
128
let killResizeListener: (() => void) | null = null;
129
0 commit comments