Browse Source

Show module ID in Module's Info menu.

tags/v2.4.0
Andrew Belt 1 year ago
parent
commit
538fdcc547
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/app/ModuleWidget.cpp

+ 6
- 0
src/app/ModuleWidget.cpp View File

@@ -990,6 +990,12 @@ void ModuleWidget::createContextMenu() {
// Info
menu->addChild(createSubmenuItem("Info", "", [=](ui::Menu* menu) {
model->appendContextMenu(menu);

if (!weakThis)
return;
menu->addChild(new ui::MenuSeparator);
menu->addChild(createMenuLabel("Module instance ID:"));
menu->addChild(createMenuLabel(string::f("%lld", (long long) weakThis->module->getId())));
}));

// Preset


Loading…
Cancel
Save