Scripts: Recent Script Files keeps a script's full path, and same-named entries show their paths

A script run from a relative path is stored with its absolute path, so
choosing it again runs the same file after the working directory changes.
The web build keeps its file keys as they are (Services::full_path).

Two recent scripts, projects, footage files or presets with the same file
name are listed with their paths instead of the name alone.
This commit is contained in:
dotCooCoo
2026-10-24 08:03:16 -07:00
parent eb2a4820e8
commit c2011fb11d
6 changed files with 92 additions and 14 deletions
+4
View File
@@ -151,6 +151,10 @@ impl Services for WebServices {
fn is_dir(&self, _path: &str) -> bool {
false
}
/// The table's keys are the paths themselves.
fn full_path(&self, path: &str) -> String {
path.to_string()
}
}
/// Media import from the table (the bytes are also handed to the media pool, which decodes them).