MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / step

Method step

src/override/MenuBar.cpp:346–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345 struct UndoItem : ui::MenuItem {
346 void step() override {
347 text = "Undo " + APP->history->getUndoName();
348 disabled = !APP->history->canUndo();
349 MenuItem::step();
350 }
351 void onAction(const ActionEvent& e) override {
352 APP->history->undo();
353 }

Callers

nothing calls this directly

Calls 1

canUndoMethod · 0.80

Tested by

no test coverage detected