MCPcopy Create free account
hub / github.com/VCVRack/Rack / onAction

Method onAction

src/app/MenuBar.cpp:954–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952 }
953
954 void onAction(const ActionEvent& e) override {
955 ui::Menu* menu = createMenu<LibraryMenu>();
956 menu->cornerFlags = BND_CORNER_TOP;
957 menu->box.pos = getAbsoluteOffset(math::Vec(0, box.size.y));
958
959 // Check for updates when menu is opened
960 if (!settings::devMode) {
961 std::thread t([&]() {
962 system::setThreadName(string::translate("MenuBar.library"));
963 library::checkUpdates();
964 });
965 t.detach();
966 }
967 }
968
969 void step() override {
970 notification->box.pos = math::Vec(0, 0);

Callers

nothing calls this directly

Calls 4

VecClass · 0.85
setThreadNameFunction · 0.85
translateFunction · 0.85
checkUpdatesFunction · 0.85

Tested by

no test coverage detected