Is there a clean way to update a UI::Command tooltip after creation? I’m interested to embed some information about the state of model in the tooltip itself, but this requires being able to set the tooltip text after creation. I tried storing the UI::Command in a variable and setting cmd.tooltip manually. This was unsuccessful, as it seems the tooltip text is stored at creation. I thought about trying to wrap the Command object in a closure that I could pass in to UI::Command.new, but this suffers from circular reasoning: I can’t capture a reference to a variable that hasn’t been created yet.
Is there a good way to support dynamic updating of UI::Command tooltips? Better ideas on how to provide ambient information about the state of the system (apart from the status bar)?
Thanks in advance!