Commit graph

2 commits

Author SHA1 Message Date
Mads Hvelplund
2f1bb901cc
fix: remove timeout=0 from scan error toast — was causing instant dismissal
Textual's Notification expires when raised_at + timeout - time() <= 0.
With timeout=0 the toast expired immediately on mount, making the error
notification invisible to users. Drop the timeout argument to use
Textual's default display duration (~5 s).
2026-06-19 13:42:21 +02:00
Mads Hvelplund
4bc1430d23
fix: show scan error as TUI toast before exit
Scan errors were stored in _scan_error and re-raised only after the
user closed the TUI, making the app appear stuck while producing a
confusing post-exit traceback.

Extract _notify_scan_error and call it from all three error branches
in _start_scan_thread so a persistent Textual toast is shown
immediately when the scan thread fails.
2026-06-19 13:40:51 +02:00