Qt/EnhancementsWidget: Fix "feature not supported" not disappearing when switching backends
This commit is contained in:
parent
f7507a84f0
commit
538aa3197f
|
@ -21,7 +21,9 @@
|
||||||
#include "DolphinQt2/Config/Graphics/PostProcessingConfigWindow.h"
|
#include "DolphinQt2/Config/Graphics/PostProcessingConfigWindow.h"
|
||||||
#include "DolphinQt2/Settings.h"
|
#include "DolphinQt2/Settings.h"
|
||||||
#include "UICommon/VideoUtils.h"
|
#include "UICommon/VideoUtils.h"
|
||||||
|
|
||||||
#include "VideoCommon/PostProcessing.h"
|
#include "VideoCommon/PostProcessing.h"
|
||||||
|
#include "VideoCommon/VideoBackendBase.h"
|
||||||
#include "VideoCommon/VideoConfig.h"
|
#include "VideoCommon/VideoConfig.h"
|
||||||
|
|
||||||
EnhancementsWidget::EnhancementsWidget(GraphicsWindow* parent)
|
EnhancementsWidget::EnhancementsWidget(GraphicsWindow* parent)
|
||||||
|
@ -165,12 +167,10 @@ void EnhancementsWidget::LoadPPShaders()
|
||||||
const bool supports_postprocessing = g_Config.backend_info.bSupportsPostProcessing;
|
const bool supports_postprocessing = g_Config.backend_info.bSupportsPostProcessing;
|
||||||
m_pp_effect->setEnabled(supports_postprocessing);
|
m_pp_effect->setEnabled(supports_postprocessing);
|
||||||
|
|
||||||
if (!supports_postprocessing)
|
m_pp_effect->setToolTip(supports_postprocessing ?
|
||||||
{
|
QStringLiteral("") :
|
||||||
m_pp_effect->setToolTip(
|
tr("%1 doesn't support this feature.")
|
||||||
tr("%1 doesn't support this feature.")
|
.arg(QString::fromStdString(g_video_backend->GetDisplayName())));
|
||||||
.arg(QString::fromStdString(SConfig::GetInstance().m_strVideoBackend)));
|
|
||||||
}
|
|
||||||
|
|
||||||
PostProcessingShaderConfiguration pp_shader;
|
PostProcessingShaderConfiguration pp_shader;
|
||||||
if (selected_shader != "(off)")
|
if (selected_shader != "(off)")
|
||||||
|
|
Loading…
Reference in New Issue