From b43b08d4236aa840e4dc48f9999306b484484e89 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sun, 24 Aug 2025 12:33:52 +0800 Subject: [PATCH] fix: init traffic light properly in library page on macOS, closes #1872 (#1891) --- apps/readest-app/src/app/library/components/LibraryHeader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/readest-app/src/app/library/components/LibraryHeader.tsx b/apps/readest-app/src/app/library/components/LibraryHeader.tsx index d737d557..049c1e20 100644 --- a/apps/readest-app/src/app/library/components/LibraryHeader.tsx +++ b/apps/readest-app/src/app/library/components/LibraryHeader.tsx @@ -95,7 +95,7 @@ const LibraryHeader: React.FC = ({ cleanupTrafficLightListeners(); }; // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, [appService?.hasTrafficLight]); const windowButtonVisible = appService?.hasWindowBar && !isTrafficLightVisible; const isInGroupView = !!searchParams?.get('group');