Handle missing plugins.

Fixes #24
This commit is contained in:
Robin Davies
2022-03-11 12:52:49 -05:00
parent f60c85070d
commit 118600204d
3 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -1297,8 +1297,9 @@ class PiPedalModelImpl implements PiPedalModel {
return nullCast(this.webSocket)
.request<number>("saveCurrentPresetAs", request)
.then((data) => {
return data;
.then((newPresetId) => {
this.loadPreset(newPresetId);
return newPresetId;
});
}
saveCurrentPluginPresetAs(pluginInstanceId: number, newName: string): Promise<number> {
+1 -1
View File
@@ -151,7 +151,7 @@ const PresetSelector =
return this.model.saveCurrentPresetAs(newName);
})
.then((newInstanceId) => {
// s'fine. dealt with by updates, but we do need error handling.
})
.catch((error) => {
this.showError(error);