ui: qemu/OSTypeEdit: drop throwing an error on multiple widgets

we will have multiple panels with the same widget. Instead
of raising an error in that case, simply ignore it, since
we normally only want to set the default initially, not when
users configured something else

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-09-22 11:27:44 +02:00 committed by Thomas Lamprecht
parent 9d0fc15540
commit eb7075d05e

View File

@ -37,7 +37,7 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
if (widgets.length === 1) {
widgets[0].setValue(newValue);
} else {
throw 'non unique widget :' + widget + ' in Wizard';
// ignore multiple disks, we only want to set the type if there is a single disk
}
},
},