GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
Optimize load_recent_files by avoiding synchronous disk existance checks on UI thread
src/config.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/config.rs b/src/config.rs
index faf1a1c..d203527 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1003,9 +1003,7 @@ pub fn load_recent_files() -> Vec<String> {
if node.name().value() == "file" {
if let Some(entry) = node.entries().first() {
if let kdl::KdlValue::String(s) = entry.value() {
- if std::path::Path::new(s).exists() {
- files.push(s.clone());
- }
+ files.push(s.clone());
}
}
}