Before going crazy
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user