Qt/GraphicsWindow: Disable unsupported options

This commit is contained in:
spycrab
2018-04-22 16:18:24 +02:00
parent c131b7c3b4
commit 4caca2bd7a
3 changed files with 31 additions and 0 deletions

View File

@ -165,6 +165,16 @@ void EnhancementsWidget::LoadSettings()
m_pp_effect->setCurrentIndex(m_pp_effect->count() - 1);
}
const bool supports_postprocessing = g_Config.backend_info.bSupportsPostProcessing;
m_pp_effect->setEnabled(supports_postprocessing);
if (!supports_postprocessing)
{
m_pp_effect->setToolTip(
tr("%1 doesn't support this feature.")
.arg(QString::fromStdString(SConfig::GetInstance().m_strVideoBackend)));
}
PostProcessingShaderConfiguration pp_shader;
if (selected_shader != "(off)")
{