Only show networks in side bar if a mounter is found
This commit is contained in:
parent
a40e6cdff4
commit
8668c18607
1 changed files with 15 additions and 13 deletions
|
|
@ -671,6 +671,7 @@ impl App {
|
|||
.divider_above()
|
||||
});
|
||||
|
||||
if !self.mounters.is_empty() {
|
||||
nav_model = nav_model.insert(|b| {
|
||||
b.text(fl!("networks"))
|
||||
.icon(widget::icon::icon(
|
||||
|
|
@ -684,6 +685,7 @@ impl App {
|
|||
))
|
||||
.divider_above()
|
||||
});
|
||||
}
|
||||
|
||||
// Collect all mounter items
|
||||
let mut nav_items = Vec::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue