Files
FlightTube/src-tauri
Vincent Rozenberg 31a8c39a3e fix: a bare channel row no longer outlives everything else
Removing every subscription left one channel behind — the parent of a
video saved on its own from the menu bar. That row is deliberately not
a subscription, so a replace spared it; but with its video no longer on
disk it was pure residue, and confusing residue: a channel absent from
the sidebar whose video still sat in the feed after everything else had
gone.

A replace now sweeps bare rows that have nothing downloaded and nothing
downloading. One whose video is still on disk survives, because that is
a deliberate save and not this function's to delete.

The preview counts the sweep too. It said "0 channels" while it would
have taken one, and a confirmation that understates itself is worse
than no confirmation. Both the count and the sweep read from one
definition of what an orphan is, so they cannot drift apart.

Also restores the step that brings the browser to the front before
scraping, which was lost in an edit that failed halfway. Without it a
background tab has its DOM discarded and reports its address while
holding nothing — indistinguishable from an empty subscription list.
2026-09-04 08:27:51 +02:00
..