Fix help buttons disabled when on homepage

This commit is contained in:
Michał Kosior crqch
2026-10-10 15:15:57 +02:00
parent 92649ffdb0
commit 371bd15dc5
+1 -1
View File
@@ -1778,7 +1778,7 @@ pub fn checked(app: &DesignApp, id: &str, params: &Value) -> Option<bool> {
/// Enablement for menu display (UI commands need a document unless they're app/window-level).
pub fn menu_enabled(app: &DesignApp, id: &str) -> bool {
if ui_label(id).is_some() {
return app.session.active().is_some() || id.starts_with("app.") || id.starts_with("window.");
return app.session.active().is_some() || id.starts_with("app.") || id.starts_with("window.") || id.starts_with("help.");
}
enabled(app, id)
}