updateUndoRedoButtons

fun updateUndoRedoButtons(onStateUpdated: (canUndo: Boolean, canRedo: Boolean) -> Unit? = null)

Recomputes undo/redo availability from the bound provider (on a background thread, since canUndo/canRedo might block) and applies it to the toolbar buttons.

Parameters

onStateUpdated

Optional callback invoked with the resolved canUndo/canRedo state once the buttons have been updated.