Skip to content

Commit 4d99ad1

Browse files
committed
Merge pull request AvaloniaUI#8255 from AvaloniaUI/fixes/osx-extended-wants-chrome-hint
OSX: fix logic for deciding if chrome buttons should be shown or not in ex…
1 parent 603f543 commit 4d99ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/Avalonia.Native/src/OSX/WindowImpl.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
bool wantsChrome = (_extendClientHints & AvnSystemChrome) || (_extendClientHints & AvnPreferSystemChrome);
34-
bool hasTrafficLights = _isClientAreaExtended ? !wantsChrome : _decorations != SystemDecorationsFull;
34+
bool hasTrafficLights = _isClientAreaExtended ? wantsChrome : _decorations != SystemDecorationsFull;
3535

3636
[[Window standardWindowButton:NSWindowCloseButton] setHidden:hasTrafficLights];
3737
[[Window standardWindowButton:NSWindowMiniaturizeButton] setHidden:hasTrafficLights];

0 commit comments

Comments
 (0)