diff --git a/src/logic/Windows.swift b/src/logic/Windows.swift index 22a4bc88..65b1c6b7 100644 --- a/src/logic/Windows.swift +++ b/src/logic/Windows.swift @@ -202,17 +202,10 @@ class Windows { let window = list[currentIndex] if window.shouldShowTheUser && !window.isWindowlessApp { window.refreshThumbnail() - DispatchQueue.main.async { - let view = ThumbnailsView.recycledViews[currentIndex] - if view.thumbnail.image != window.thumbnail { - let oldSize = view.thumbnail.frame.size - view.thumbnail.image = window.thumbnail - view.thumbnail.image?.size = oldSize - view.thumbnail.frame.size = oldSize - } - } } refreshThumbnailsAsync(screen, currentIndex + 1) + } else { + DispatchQueue.main.async { App.app.refreshOpenUi() } } } }