setHistoryEnabled method

void setHistoryEnabled(
  1. bool enabled
)

Enable/disable action history

Implementation

void setHistoryEnabled(bool enabled) {
  _enableHistory = enabled;
  if (!enabled) {
    clearHistory();
  }
}