Revert "fix: windows title bar and refactor old code (#4988)" this breaks UI page switch function

This reverts commit 03ab2410cc.
This commit is contained in:
Tunglies
2025-10-10 07:37:35 +08:00
Unverified
parent 0a771bd67a
commit 7e05b8f13b

View File

@@ -193,8 +193,6 @@ const Layout = () => {
decorated,
"| showing:",
!decorated,
"| theme mode:",
mode,
);
if (!decorated) {
return (
@@ -204,7 +202,7 @@ const Layout = () => {
);
}
return null;
}, [decorated, mode]);
}, [decorated]);
useEffect(() => {
setThemeReady(true);