diff --git a/src/renderer/hooks/use-should-pad-titlebar.tsx b/src/renderer/hooks/use-should-pad-titlebar.tsx index 5e87b3c0..97407c34 100644 --- a/src/renderer/hooks/use-should-pad-titlebar.tsx +++ b/src/renderer/hooks/use-should-pad-titlebar.tsx @@ -1,14 +1,14 @@ import { useLocation } from 'react-router'; import { AppRoute } from '/@/renderer/router/routes'; -import { useSidebarRightExpanded } from '/@/renderer/store'; -import { useGeneralSettings } from '/@/renderer/store/settings.store'; +import { useSidebarRightExpanded, useGeneralSettings, useWindowSettings } from '/@/renderer/store'; import { Platform } from '/@/renderer/types'; export const useShouldPadTitlebar = () => { const location = useLocation(); const isSidebarExpanded = useSidebarRightExpanded(); const isQueuePage = location.pathname === AppRoute.NOW_PLAYING; - const { sideQueueType, windowBarStyle } = useGeneralSettings(); + const { sideQueueType } = useGeneralSettings(); + const { windowBarStyle } = useWindowSettings(); const conditions = [ windowBarStyle === Platform.WEB,