fix(list): do not list sessions as resurrectable unless they are (#4354)
This commit is contained in:
parent
ab5461eb90
commit
c01e59e9aa
1 changed files with 5 additions and 1 deletions
|
|
@ -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())?;
|
||||||
Some((session_name, elapsed_duration))
|
if std::path::Path::new(&layout_file_name).exists() {
|
||||||
|
Some((session_name, elapsed_duration))
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue