Handle missing plugins

fixes #24
This commit is contained in:
Robin Davies
2022-03-11 18:10:51 -05:00
parent 7a6adf0f84
commit 85cb85e377
6 changed files with 60 additions and 10 deletions
+3 -2
View File
@@ -59,6 +59,7 @@ const SVG_STEREO_STROKE_WIDTH = "6";
const EMPTY_ICON_URL = "img/fx_empty.svg";
const ERROR_ICON_URL = "img/fx_error.svg";
const TERMINAL_ICON_URL = "img/fx_terminal.svg";
@@ -288,8 +289,8 @@ class PedalLayout {
} else {
// default to empty plugin.
this.pluginType = PluginType.UtilityPlugin;
this.name = "#Missing";
this.iconUrl = EMPTY_ICON_URL;
this.name = pedalItem.pluginName??"#error";
this.iconUrl = ERROR_ICON_URL;
this.inputs = 2;
this.outputs = 2;
}