odevices / er-301

Firmware and SDK for the ER-301
https://www.orthogonaldevices.com/er-301
MIT License
131 stars 26 forks source link

Package Mgr: Units count appears to be off #6

Closed SuperNiCd closed 3 years ago

SuperNiCd commented 3 years ago

Suspect it is counting category entries in toc.lua as units. I currently have 6 units and 5 categories in my toc.lua. Package manager is displaying 11 units.

odevices commented 3 years ago

Oh that reminds me! I'm going to deprecate the inclusion of category entries in the units table. Instead, you should just add a category field to the unit entry. Like this:

local units = {
  {
    title = "Linear Bipolar VCA",
    moduleName = "VCA.LinearBipolar", 
    keywords = "modulate",
    category = "Essentials", -- add this
    aliases = {
      "LinearVcaUnit"
    }
  }
}

This is already supported, I just haven't migrated the existing toc.lua files yet. Once you do this, the count should be correct.