Skip to content

Commit ea80229

Browse files
committed
added a guard to not recreate ProgressSpinners on AppKit when the size didn't change
1 parent 6d7049a commit ea80229

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/AppKitBackend/AppKitBackend.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@ public final class AppKitBackend: AppBackend {
12041204
_ widget: Widget,
12051205
_ size: SIMD2<Int>
12061206
) {
1207+
guard Int(widget.frame.size.height) != size.y else { return }
12071208
setSize(of: widget, to: size)
12081209
let spinner = NSProgressIndicator()
12091210
spinner.translatesAutoresizingMaskIntoConstraints = false

0 commit comments

Comments
 (0)