BugFix: Multiple object creation

This commit is contained in:
Hariharan Mudaliar 2025-09-06 19:43:40 +05:30
commit f4bcb96906
8 changed files with 202 additions and 33 deletions

View file

@ -112,9 +112,14 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// Cancel any pending window size updates
windowSizeUpdateWorkItem?.cancel()
print("🚪 Application terminating - ensuring system HUD is restored...")
// Re-enable system HUD on app termination
SystemOSDManager.enableSystemHUD()
// Give it time to complete
usleep(500000) // 500ms
NotificationCenter.default.removeObserver(self)
}