From 7e05b8f13b24784b44268be07f3cc59faaa53dfe Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Fri, 10 Oct 2025 07:37:35 +0800 Subject: [PATCH] Revert "fix: windows title bar and refactor old code (#4988)" this breaks UI page switch function This reverts commit 03ab2410cc2ebdd1f70e9ce883d1b572fb58ff12. --- src/pages/_layout.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx index e109f0c0..ebdff0ca 100644 --- a/src/pages/_layout.tsx +++ b/src/pages/_layout.tsx @@ -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);