Skip to content

Commit 3771a66

Browse files
committed
Debounce settings window visibility check
1 parent fabb414 commit 3771a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ice/Main/AppState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ final class AppState: ObservableObject {
114114

115115
if let settingsWindow {
116116
settingsWindow.publisher(for: \.isVisible)
117-
.receive(on: DispatchQueue.main)
117+
.debounce(for: 0.05, scheduler: DispatchQueue.main)
118118
.sink { [weak self] isVisible in
119119
guard let self else {
120120
return

0 commit comments

Comments
 (0)