graphics() fix empty controllers (macOS)

This commit is contained in:
Sebastian Hildebrandt 2021-08-26 11:36:30 +02:00
parent b5f899b312
commit ef195cb3ba

View File

@ -206,7 +206,7 @@ function graphics(callback) {
}
}
}
if (Object.keys(currentController).length > 0) {// just changed to Displays
if (Object.keys(currentController).length > 0 && (currentController.vendor || currentController.model)) {// just changed to Displays
controllers.push(currentController);
}
if (Object.keys(currentDisplay).length > 0) {// just changed to Displays