From dd2e2c860571b59ef4b6748392942ff5ed3155aa Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 25 Oct 2026 14:37:40 -0400 Subject: [PATCH] fix(updates): give the update command a ui. id so the ribbon button is enabled --- crates/ui-egui/src/lib.rs | 4 ++-- crates/ui-egui/src/ribbon.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index da820325d..3a77229a7 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -1631,7 +1631,7 @@ impl WordApp { fn ui_command(&mut self, id: &str, p: &Value) -> Option> { let s = |k: &str| p.get(k).and_then(Value::as_str); Some(Ok(match id { - "app.checkForUpdates" | "help.checkForUpdates" => { + "ui.checkForUpdates" | "help.checkForUpdates" => { crate::updates_ui::check(self); Value::Null } @@ -3027,7 +3027,7 @@ pub(crate) fn works_without_document(id: &str) -> bool { | "ui.discord" | "ui.caretAnimation" | "ui.startScreen" - | "app.checkForUpdates" + | "ui.checkForUpdates" ) || id.starts_with("help.") } diff --git a/crates/ui-egui/src/ribbon.rs b/crates/ui-egui/src/ribbon.rs index 833fab8de..0f498994b 100644 --- a/crates/ui-egui/src/ribbon.rs +++ b/crates/ui-egui/src/ribbon.rs @@ -2431,7 +2431,7 @@ fn outlining(app: &mut WordApp, ui: &mut Ui) { fn help(app: &mut WordApp, ui: &mut Ui) { group(ui, "Help", None, app, |ui, app| { big(ui, app, "help", "Help", "ui.dialog", json!({"name": "about"}), false); - big(ui, app, "checkForUpdates", "Check for\nUpdates…", "app.checkForUpdates", json!({}), false); + big(ui, app, "checkForUpdates", "Check for\nUpdates…", "ui.checkForUpdates", json!({}), false); big(ui, app, "discord", "Community\nDiscord", "ui.discord", json!({}), false); }); group(ui, "Agents", None, app, |ui, app| {