fix(list): do not list sessions as resurrectable unless they are (#4354)

This commit is contained in:
Aram Drevekenin 2025-08-07 16:28:49 +02:00 committed by GitHub
parent ab5461eb90
commit c01e59e9aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,11 @@ pub fn get_resurrectable_sessions() -> Vec<(String, Duration)> {
let session_name = folder_name let session_name = folder_name
.file_name() .file_name()
.map(|f| std::path::PathBuf::from(f).display().to_string())?; .map(|f| std::path::PathBuf::from(f).display().to_string())?;
if std::path::Path::new(&layout_file_name).exists() {
Some((session_name, elapsed_duration)) Some((session_name, elapsed_duration))
} else {
None
}
}) })
.collect() .collect()
}, },