Qt/EnhancementsWidget: Fix "feature not supported" not disappearing when switching backends

This commit is contained in:
spycrab 2018-05-26 17:23:32 +02:00
parent f7507a84f0
commit 538aa3197f
1 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,9 @@
#include "DolphinQt2/Config/Graphics/PostProcessingConfigWindow.h"
#include "DolphinQt2/Settings.h"
#include "UICommon/VideoUtils.h"
#include "VideoCommon/PostProcessing.h"
#include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoConfig.h"
EnhancementsWidget::EnhancementsWidget(GraphicsWindow* parent)
@ -165,12 +167,10 @@ void EnhancementsWidget::LoadPPShaders()
const bool supports_postprocessing = g_Config.backend_info.bSupportsPostProcessing;
m_pp_effect->setEnabled(supports_postprocessing);
if (!supports_postprocessing)
{
m_pp_effect->setToolTip(
m_pp_effect->setToolTip(supports_postprocessing ?
QStringLiteral("") :
tr("%1 doesn't support this feature.")
.arg(QString::fromStdString(SConfig::GetInstance().m_strVideoBackend)));
}
.arg(QString::fromStdString(g_video_backend->GetDisplayName())));
PostProcessingShaderConfiguration pp_shader;
if (selected_shader != "(off)")