Before going crazy

This commit is contained in:
2026-01-28 18:05:50 +01:00
parent 2be15d11f4
commit d106711708
11 changed files with 459 additions and 299 deletions

View File

@@ -14,6 +14,12 @@ pub struct DirEntry {
pub is_dir: bool,
}
impl DirEntry {
pub fn is_cagire(&self) -> bool {
!self.is_dir && self.name.ends_with(".cagire")
}
}
#[derive(Clone, PartialEq, Eq)]
pub struct FileBrowserState {
pub mode: FileBrowserMode,