Skip to content

Commit

Permalink
Debounce settings window visibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Oct 1, 2024
1 parent fabb414 commit 3771a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ice/Main/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ final class AppState: ObservableObject {

if let settingsWindow {
settingsWindow.publisher(for: \.isVisible)
.receive(on: DispatchQueue.main)
.debounce(for: 0.05, scheduler: DispatchQueue.main)
.sink { [weak self] isVisible in
guard let self else {
return
Expand Down

0 comments on commit 3771a66

Please sign in to comment.