Skip to content

Conversation

ospfranco
Copy link

Summary:

Whenever the macOS app starts there is a big amount of output and warnings, at least on the latest macOS version, regarding appearance being fetched not on the main thread. This fixes at least the initial warnings and static calls to getColorScheme by making the work sync on the main thread. Probably incurs in a slight performance penalty but should be minor?

Test Plan:

None :) just start the app and no warnings should pop-up

@ospfranco ospfranco requested a review from a team as a code owner October 4, 2025 08:31
@ospfranco
Copy link
Author

@microsoft-github-policy-service agree

Copy link
Collaborator

@Saadnajmi Saadnajmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just override requiresMainQueueSetup for this class to return YES on macOS (AKA, in an ifdef). This works in my testing on paper and fabric.

@ospfranco
Copy link
Author

I don't know how to do that :) do you mind taking care of that?

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot) and removed Needs: Author Feedback labels Oct 10, 2025
@Saadnajmi
Copy link
Collaborator

I don't know how to do that :) do you mind taking care of that?

I'll give it a shot...

@Saadnajmi
Copy link
Collaborator

@ospfranco This PR should be superseded by #2729

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Attention 👋 An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants