Fix missing open project button

This commit is contained in:
Jeremy Soller 2024-03-18 09:49:15 -06:00
parent 4e678873da
commit 0eaaeab652
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -1290,8 +1290,8 @@ impl Application for App {
} }
} }
// Show nav bar only if project is provided // Add button to open a project if none provided
if app.core.nav_bar_active() != app.nav_model.iter().next().is_some() { if app.nav_model.iter().next().is_none() {
app.nav_model app.nav_model
.insert() .insert()
.icon(icon_cache_get("folder-open-symbolic", 16)) .icon(icon_cache_get("folder-open-symbolic", 16))