forked from 1b-agent/opencadstudio-upstream
feat(start): list tutorial videos newest first
The playlist page lists oldest-first; reverse before persisting so the cached listing and offline launches share the order. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
c879b4294a
commit
ba73c48aec
1 file changed
+5
@@ -158,6 +158,11 @@ pub fn fetch_playlist() -> Result<Vec<VideoEntry>, String> {
|
||||
return Err("no video titles resolved".into());
|
||||
}
|
||||
|
||||
// The playlist page lists oldest-first; the Start page wants the newest
|
||||
// tutorials on top. Reversed before persisting, so the cached listing
|
||||
// (and every later offline launch) shares the same order.
|
||||
out.reverse();
|
||||
|
||||
// Persist the listing so the next launch starts from it.
|
||||
if let Some(d) = &dir {
|
||||
let listing: String = out
|
||||
|
||||
Reference in new issue
Block a user