Browse Source

Add plugin "version" to module in .vcv file

pull/1639/head
Andrew Belt 7 years ago
parent
commit
3a3b82c32d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/app/ModuleWidget.cpp

+ 4
- 1
src/app/ModuleWidget.cpp View File

@@ -60,8 +60,11 @@ void ModuleWidget::setPanel(std::shared_ptr<SVG> svg) {
json_t *ModuleWidget::toJson() {
json_t *rootJ = json_object();

// manufacturer
// plugin
json_object_set_new(rootJ, "plugin", json_string(model->plugin->slug.c_str()));
// version (of plugin)
if (!model->plugin->version.empty())
json_object_set_new(rootJ, "version", json_string(model->plugin->version.c_str()));
// model
json_object_set_new(rootJ, "model", json_string(model->slug.c_str()));
// pos


Loading…
Cancel
Save