pub(crate) async fn prepare_unified_scan(app: AppHandle) -> Result<(), String>Expand description
Clears unified stop flags before the scan_unified invoke (after the
frontend’s listener-registration delay). Without this, scan_unified would
reset stop_scan to false at entry and erase a Stop All that happened during
that delay — scans looked like they “could not stop”.