configure_graphics: Re-order vulkan device populating
This commit is contained in:
parent
2e5af95541
commit
1b27a2b597
1 changed files with 4 additions and 4 deletions
|
@ -26,6 +26,10 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent)
|
||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
for (const auto& device : vulkan_devices) {
|
||||||
|
ui->device->addItem(device);
|
||||||
|
}
|
||||||
|
|
||||||
ui->backend->addItem(QStringLiteral("GLSL"));
|
ui->backend->addItem(QStringLiteral("GLSL"));
|
||||||
ui->backend->addItem(tr("GLASM (NVIDIA Only)"));
|
ui->backend->addItem(tr("GLASM (NVIDIA Only)"));
|
||||||
ui->backend->addItem(QStringLiteral("SPIR-V"));
|
ui->backend->addItem(QStringLiteral("SPIR-V"));
|
||||||
|
@ -54,10 +58,6 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent)
|
||||||
UpdateBackgroundColorButton(new_bg_color);
|
UpdateBackgroundColorButton(new_bg_color);
|
||||||
});
|
});
|
||||||
|
|
||||||
for (const auto& device : vulkan_devices) {
|
|
||||||
ui->device->addItem(device);
|
|
||||||
}
|
|
||||||
|
|
||||||
ui->bg_label->setVisible(Settings::IsConfiguringGlobal());
|
ui->bg_label->setVisible(Settings::IsConfiguringGlobal());
|
||||||
ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal());
|
ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue