Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
  • Loading branch information
intitni committed Jun 24, 2023
commit 481aff4893fddfaa735f4b9f81e9f7ecdfbfa58a
8 changes: 4 additions & 4 deletions Core/Sources/XcodeInspector/XcodeInspector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ public final class XcodeAppInstanceInspector: AppInstanceInspector {
observeFocusedWindow()
observeAXNotifications()

if !(focusedWindow is WorkspaceXcodeWindowInspector) {
// Sometimes the focused window may note be ready on app launch.
Task {
try await Task.sleep(nanoseconds: 2_000_000_000)
Task {
try await Task.sleep(nanoseconds: 3_000_000_000)
// Sometimes the focused window may not be ready on app launch.
if !(focusedWindow is WorkspaceXcodeWindowInspector) {
observeFocusedWindow()
}
}
Expand Down