mirror of
https://github.com/PlayCover/PlayCover.git
synced 2026-04-26 08:15:56 +03:00
[PR #1530] [MERGED] Fix notch detection to work on all machines #1875
Labels
No labels
UI
app-support
bug
bug
documentation
duplicate
enhancement
game-support
good first issue
help wanted / caution
inactive
invalid
macos-beta
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PlayCover#1875
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/PlayCover/PlayCover/pull/1530
Author: @mitchellmebane
Created: 6/27/2024
Status: ✅ Merged
Merged: 6/27/2024
Merged by: @Depal1
Base:
develop← Head:notch-detection📝 Commits (1)
73e4e2eMake notch detection work without hard-coded model list📊 Changes
1 file changed (+3 additions, -7 deletions)
View changed files
📝
PlayCover/Model/AppSettings.swift(+3 -7)📄 Description
This replaces the hard-coded list of Mac models that have a notch with a runtime check.
I'm checking if any connected screen has a notch because that should provide equivalent behavior to the model check.
I left the
NSScreen.getMacModel()extension method in, but it's not used any more, so I can remove it if desired.Resolves #1516.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.