Qt: Make automap failure message more friendly

This commit is contained in:
Connor McLaughlin 2022-10-21 00:30:08 +10:00
parent b6686b8239
commit ac3b3e89f4
1 changed files with 4 additions and 2 deletions

View File

@ -261,8 +261,10 @@ void ControllerBindingWidget::doDeviceAutomaticBinding(const QString& device)
InputManager::GetGenericBindingMapping(device.toStdString()); InputManager::GetGenericBindingMapping(device.toStdString());
if (mapping.empty()) if (mapping.empty())
{ {
QMessageBox::critical(QtUtils::GetRootWidget(this), tr("Automatic Mapping"), QMessageBox::critical(
tr("No generic bindings were generated for device '%1'").arg(device)); QtUtils::GetRootWidget(this), tr("Automatic Mapping"),
tr("No generic bindings were generated for device '%1'. The controller/source may not support automatic mapping.")
.arg(device));
return; return;
} }