diff --git a/include/engine.hpp b/include/engine.hpp index af054216..ed909e6c 100644 --- a/include/engine.hpp +++ b/include/engine.hpp @@ -75,9 +75,9 @@ struct Module { /** Called when the engine sample rate is changed */ virtual void onSampleRateChange() {} - /** Called when module is created by the Add Module popup, cloning, or when loading a patch or autosave */ + /** Called when module is created by the Module Browser or by cloning, NOT when a patch is loaded */ virtual void onCreate() {} - /** Called when user explicitly deletes the module, not when Rack is closed or a new patch is loaded */ + /** Called when user explicitly deletes the module, NOT when Rack is closed or a new patch is loaded */ virtual void onDelete() {} /** Called when user clicks Initialize in the module context menu */ virtual void onReset() { diff --git a/src/app/ModuleBrowser.cpp b/src/app/ModuleBrowser.cpp index ea419e1c..0653bcbf 100644 --- a/src/app/ModuleBrowser.cpp +++ b/src/app/ModuleBrowser.cpp @@ -139,7 +139,7 @@ struct ModelItem : BrowserListItem { ModuleWidget *moduleWidget = model->createModuleWidget(); if (!moduleWidget) return; - gRackWidget->moduleContainer->addChild(moduleWidget); + gRackWidget->addModule(moduleWidget); // Move module nearest to the mouse position moduleWidget->box.pos = gRackWidget->lastMousePos.minus(moduleWidget->box.size.div(2)); gRackWidget->requestModuleBoxNearest(moduleWidget, moduleWidget->box); diff --git a/src/main.cpp b/src/main.cpp index 257dda2c..68cf3610 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -44,7 +44,7 @@ int main(int argc, char* argv[]) { loggerInit(devMode); // Log environment - info("Rack %s", gApplicationVersion.c_str()); + info("%s %s", gApplicationName.c_str(), gApplicationVersion.c_str()); if (devMode) info("Development mode"); info("Global directory: %s", assetGlobal("").c_str());