Skip to content

Commit 51e3619

Browse files
committed
fix dorpdown hide
1 parent 3675189 commit 51e3619

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

interview_coder/AppModel.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,8 @@ final class AppModel: NSObject, ObservableObject {
483483
guard let self else { return }
484484
Task { @MainActor in self.closeTransientWindows() }
485485
}
486-
NotificationCenter.default.addObserver(forName: NSApplication.didBecomeActiveNotification, object: nil, queue: .main) { [weak self] _ in
487-
guard let self else { return }
488-
Task { @MainActor in self.closeTransientWindows() }
489-
}
486+
// Do not close transient windows on app activation; this races with
487+
// legitimate menus/popovers that open on first click to activate.
490488
}
491489

492490
deinit { AppModel.registry.remove(self) }

0 commit comments

Comments
 (0)