Skip to content

Commit 3142590

Browse files
committed
fix: missing thumbnails in rare cases
1 parent fa9e4d0 commit 3142590

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/logic/events/AccessibilityEvents.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,14 @@ class AccessibilityEvents {
9494
return
9595
}
9696
Logger.debug { "\(type) win:\(window.debugId)" }
97+
if findOrCreate.1 {
98+
App.app.refreshOpenUiAfterExternalEvent([window])
99+
}
97100
if type == kAXMainWindowChangedNotification || type == kAXFocusedWindowChangedNotification {
98101
focusedWindowChanged(window)
99102
} else if type == kAXWindowResizedNotification || type == kAXWindowMovedNotification {
100103
windowResizedOrMoved(window)
101-
} else {
104+
} else if !findOrCreate.1 {
102105
App.app.refreshOpenUiAfterExternalEvent([window])
103106
}
104107
}

0 commit comments

Comments
 (0)