From 8ff6ae98597921bfec5cd89ac820ecc8c0d77093 Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Sun, 15 Dec 2024 16:50:57 +0100 Subject: [PATCH] fix: custom Node DB path was never validated introduced in 1.5.4 --- src/app/panels/bottom.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/panels/bottom.rs b/src/app/panels/bottom.rs index fc51fd2..b7d5d40 100644 --- a/src/app/panels/bottom.rs +++ b/src/app/panels/bottom.rs @@ -566,7 +566,7 @@ impl crate::app::App { ProcessName::Node => { // check path of DB valid, empty valid. if !self.state.node.path_db.is_empty() - && !Gupax::path_is_file(&self.state.node.path_db) + && !Gupax::path_is_dir(&self.state.node.path_db) { return Err(format!("Error: {}", NODE_DB_DIR)); }