Merge branch 'tree_explorer' into tree_explorer_icons

imgbot
Roland Singer 2 years ago
commit d839c2a2f5

@ -134,31 +134,19 @@ pub struct ExplorerConfig {
impl ExplorerConfig { impl ExplorerConfig {
pub fn is_embed(&self) -> bool { pub fn is_embed(&self) -> bool {
match self.position { return self.position == ExplorerPosition::Embed;
ExplorerPosition::Embed => true,
ExplorerPosition::Overlay => false,
}
} }
pub fn is_overlay(&self) -> bool { pub fn is_overlay(&self) -> bool {
match self.position { return self.position == ExplorerPosition::Overlay;
ExplorerPosition::Embed => false,
ExplorerPosition::Overlay => true,
}
} }
pub fn is_list(&self) -> bool { pub fn is_list(&self) -> bool {
match self.style { return self.style == ExplorerStyle::List;
ExplorerStyle::List => true,
ExplorerStyle::Tree => false,
}
} }
pub fn is_tree(&self) -> bool { pub fn is_tree(&self) -> bool {
match self.style { return self.style == ExplorerStyle::Tree;
ExplorerStyle::List => false,
ExplorerStyle::Tree => true,
}
} }
} }

Loading…
Cancel
Save