Qt: Fix empty device list when editing profile

This commit is contained in:
Stenzek 2024-11-03 20:20:36 +10:00
parent 8c4d595a89
commit 98cce645a9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ void ControllerSettingsWindow::createWidgets()
m_ui.settingsContainer->addWidget(m_global_settings);
connect(m_global_settings, &ControllerGlobalSettingsWidget::bindingSetupChanged, this,
&ControllerSettingsWindow::createWidgets);
if (isEditingGlobalSettings())
if (!isEditingGameSettings())
{
for (const auto& [identifier, device_name] : m_device_list)
m_global_settings->addDeviceToList(QString::fromStdString(identifier), QString::fromStdString(device_name));