mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-30 21:26:48 -06:00
Fix help buttons disabled when on homepage
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user