- macOS Window Restoration: Fixed an issue where clicking the app icon in the Dock would fail to reopen/restore the calculator window if the app was running in the menu bar (tray) and had been closed via the traffic light close button.
- Window Lifecycle Cleanup: Properly reset the internal window reference on close to prevent potential memory and lifecycle-related issues.