UndoManager.canUndo

bool canUndo()

Get whether there are undo operations available.

Returns

true if there are undo operations available, false otherwise