mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 08:11:24 +02:00
Always show window controls, and open Linux settings in dialog
This commit is contained in:
9
src-web/hooks/useStoplightsVisible.ts
Normal file
9
src-web/hooks/useStoplightsVisible.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useIsFullscreen } from './useIsFullscreen';
|
||||
import { useOsInfo } from './useOsInfo';
|
||||
|
||||
export function useStoplightsVisible() {
|
||||
const platform = useOsInfo();
|
||||
const fullscreen = useIsFullscreen();
|
||||
const stoplightsVisible = platform?.osType === 'macos' && !fullscreen;
|
||||
return stoplightsVisible;
|
||||
}
|
||||
Reference in New Issue
Block a user