How to refresh VCB when Units change

OK, I’ve come up with a method that works: if you deselect and then reselect the current tool, the VCB is updated:

model=Sketchup.active_model
model.tools.push_tool(nil)  # Refresh VCB
model.tools.pop_tool

Full extension:
toggleConfig.rb (1.3 KB)