feel better : optimized tree display

This commit is contained in:
Penwing 2024-01-27 22:16:25 +01:00
parent 7fabb8a9ec
commit f8e450cb3b
2 changed files with 66 additions and 75 deletions

View file

@ -2,7 +2,6 @@ use std::ffi::OsStr;
use std::fs;
use std::io;
use std::path::{Path, PathBuf};
//use eframe::egui;
use crate::tools;
use crate::ALLOWED_FILE_EXTENSIONS;
@ -25,15 +24,6 @@ impl File {
folder_open: false,
}
}
pub fn empty() -> Self {
Self {
name: "No file found".into(),
path: Path::new("/").to_path_buf(),
folder_content: None,
folder_open: false,
}
}
}

View file

@ -14,6 +14,7 @@ pub mod confirm;
pub mod search;
pub mod settings;
pub mod shortcuts;
pub mod file_tree;
pub mod terminal;
pub use terminal::*;