git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit02a783e66ac21978f03e1e4bb006bc35aa1f27d2
parent55b5d6a210
authorLucas Galante <[email protected]>
date2026-07-06 21:47
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());
                                     }
                                 }
                             }