Skip to content

Fix accessing the UI from non main thread#35

Open
mykola-mokhnach wants to merge 1 commit into
stweil:mainfrom
sauce-archives:fix_access
Open

Fix accessing the UI from non main thread#35
mykola-mokhnach wants to merge 1 commit into
stweil:mainfrom
sauce-archives:fix_access

Conversation

@mykola-mokhnach

Copy link
Copy Markdown
Contributor

It makes the compiler much happier than it is now

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses UI access from a non-main thread in dedicatedUpdateHostInfoThread, aligning the host-info update logic with AppKit’s main-thread-only requirements and avoiding thread-checker/compiler warnings.

Changes:

  • Read limitToLocalConnections.state on the main queue instead of directly from the background thread.
  • Read runningPortNum (which ultimately depends on the portNumText UI control) on the main queue and use the captured value for URL construction.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants