mirror of
https://github.com/stenzek/duckstation.git
synced 2026-07-11 01:24:11 +02:00
Qt: Suffix unavailable audio and video devices
This was already implemented, just bugged.
This commit is contained in:
@@ -241,7 +241,7 @@ void AudioSettingsWidget::queueUpdateDeviceNames()
|
||||
}
|
||||
else
|
||||
{
|
||||
const std::string current_device = m_dialog->getEffectiveStringValue("Audio", "Device");
|
||||
const std::string current_device = m_dialog->getEffectiveStringValue("Audio", "OutputDevice");
|
||||
|
||||
m_ui.outputDevice->setEnabled(true);
|
||||
|
||||
@@ -258,7 +258,7 @@ void AudioSettingsWidget::queueUpdateDeviceNames()
|
||||
|
||||
if (!is_known_device)
|
||||
{
|
||||
m_ui.outputDevice->addItem(tr("Unknown Device \"%1\"").arg(QString::fromStdString(current_device)),
|
||||
m_ui.outputDevice->addItem(tr("%1 [Unavailable]").arg(QString::fromStdString(current_device)),
|
||||
QString::fromStdString(current_device));
|
||||
}
|
||||
|
||||
|
||||
@@ -709,7 +709,7 @@ void GraphicsSettingsWidget::populateGPUAdaptersAndResolutions(RenderAPI render_
|
||||
{
|
||||
// if the adapter is not available, ensure it's in the list anyway, otherwise select the default
|
||||
const QString qadaptername = QString::fromStdString(current_adapter_name);
|
||||
m_ui.adapter->addItem(qadaptername, QVariant(qadaptername));
|
||||
m_ui.adapter->addItem(tr("%1 [Unavailable]").arg(qadaptername), QVariant(qadaptername));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user