mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-20 16:55:40 -04:00
Qt: Move post processing to its own setting category
This commit is contained in:
@ -47,25 +47,6 @@ DisplaySettingsWidget::DisplaySettingsWidget(QtHostInterface* host_interface, QW
|
||||
&DisplaySettingsWidget::onGPUAdapterIndexChanged);
|
||||
populateGPUAdapters();
|
||||
|
||||
{
|
||||
std::string post_chain = g_host_interface->GetStringSettingValue("Display", "PostProcessChain");
|
||||
if (!post_chain.empty() && !m_ui.postChain->setConfigString(post_chain))
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"),
|
||||
tr("The current post-processing chain is invalid, it has been reset. Any changes made will "
|
||||
"overwrite the existing config."));
|
||||
}
|
||||
}
|
||||
connect(m_ui.postChain, &PostProcessingChainConfigWidget::chainConfigStringChanged,
|
||||
[this](const std::string& new_config) {
|
||||
if (new_config.empty())
|
||||
m_host_interface->RemoveSettingValue("Display", "PostProcessChain");
|
||||
else
|
||||
m_host_interface->SetStringSettingValue("Display", "PostProcessChain", new_config.c_str());
|
||||
|
||||
m_host_interface->applySettings();
|
||||
});
|
||||
|
||||
dialog->registerWidgetHelp(
|
||||
m_ui.renderer, tr("Renderer"), Settings::GetRendererDisplayName(Settings::DEFAULT_GPU_RENDERER),
|
||||
tr("Chooses the backend to use for rendering the console/game visuals. <br>Depending on your system and hardware, "
|
||||
|
Reference in New Issue
Block a user