fix: init traffic light properly in library page on macOS, closes #1872 (#1891)

This commit is contained in:
Huang Xin
2025-08-24 12:33:52 +08:00
committed by GitHub
parent 3ddb6e6422
commit b43b08d423
@@ -95,7 +95,7 @@ const LibraryHeader: React.FC<LibraryHeaderProps> = ({
cleanupTrafficLightListeners();
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [appService?.hasTrafficLight]);
const windowButtonVisible = appService?.hasWindowBar && !isTrafficLightVisible;
const isInGroupView = !!searchParams?.get('group');