Checkpoint

This commit is contained in:
Robin E. R. Davies
2025-08-01 18:24:54 -04:00
parent af5b1542b1
commit aa13301b84
16 changed files with 415 additions and 388 deletions
+14 -4
View File
@@ -327,8 +327,12 @@ class PedalLayout {
else {
let uiPlugin = model.getUiPlugin(pedalItem.uri);
if (uiPlugin != null) {
this.pluginType = uiPlugin.plugin_type;
this.iconUrl = SelectIconUri(uiPlugin.plugin_type);
let pluginType = uiPlugin.plugin_type;
this.pluginType = pluginType;
if (this.uri === "http://two-play.com/plugins/toob-nam") {
pluginType = PluginType.NamPlugin;
}
this.iconUrl = SelectIconUri(pluginType);
this.name = uiPlugin.label;
if (pedalItem.title !== "") {
this.name = pedalItem.title;
@@ -1109,12 +1113,18 @@ withStyles(
</div>
)
let uiPlugin = this.model.getUiPlugin(item.pedalItem?.uri ?? "");
let pluginMissing = uiPlugin == null;
let pluginMissing = uiPlugin === null;
let pluginType = item.pluginType;
if (uiPlugin && uiPlugin.uri === "http://two-play.com/plugins/toob-nam")
{
pluginType = PluginType.NamPlugin;
}
result.push(<div key={this.renderKey++} className={classes.pedalItem} style={{ left: item.bounds.x, top: item.bounds.y }} >
{this.pedalButton(
item.pedalItem?.instanceId ?? -1,
item.pluginType,
pluginType,
!item.isEmpty(),
item.pedalItem?.isEnabled ?? false,
true,