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:
@@ -193,8 +193,6 @@ const Layout = () => {
|
|||||||
decorated,
|
decorated,
|
||||||
"| showing:",
|
"| showing:",
|
||||||
!decorated,
|
!decorated,
|
||||||
"| theme mode:",
|
|
||||||
mode,
|
|
||||||
);
|
);
|
||||||
if (!decorated) {
|
if (!decorated) {
|
||||||
return (
|
return (
|
||||||
@@ -204,7 +202,7 @@ const Layout = () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}, [decorated, mode]);
|
}, [decorated]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setThemeReady(true);
|
setThemeReady(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user