fix: close reminders when opening settings fix frozen bug
This commit is contained in:
@@ -239,6 +239,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
|
|||||||
// Post notification to close menu bar popover
|
// Post notification to close menu bar popover
|
||||||
NotificationCenter.default.post(name: Notification.Name("CloseMenuBarPopover"), object: nil)
|
NotificationCenter.default.post(name: Notification.Name("CloseMenuBarPopover"), object: nil)
|
||||||
|
|
||||||
|
// Dismiss overlay reminders to prevent them from blocking settings window
|
||||||
|
// Overlay reminders are at .floating level which would sit above settings
|
||||||
|
dismissOverlayReminder()
|
||||||
|
|
||||||
// Small delay to allow menu bar to close before opening settings
|
// Small delay to allow menu bar to close before opening settings
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { [weak self] in
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { [weak self] in
|
||||||
self?.openSettingsWindow(tab: tab)
|
self?.openSettingsWindow(tab: tab)
|
||||||
@@ -249,6 +253,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
|
|||||||
func openOnboarding() {
|
func openOnboarding() {
|
||||||
NotificationCenter.default.post(name: Notification.Name("CloseMenuBarPopover"), object: nil)
|
NotificationCenter.default.post(name: Notification.Name("CloseMenuBarPopover"), object: nil)
|
||||||
|
|
||||||
|
// Dismiss overlay reminders to prevent blocking onboarding window
|
||||||
|
dismissOverlayReminder()
|
||||||
|
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { [weak self] in
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { [weak self] in
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user