Skip to content

Commit

Permalink
Grey out reduce bloom when disabled bloom is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirMangler committed Apr 8, 2021
1 parent 683239c commit a5569c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Core/DolphinQt/Config/Graphics/PrimeWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PrimeWidget::PrimeWidget(GraphicsWindow* parent)
ArmPositionModeChanged(m_manual_arm_position->isChecked());

m_select_colour->setStyleSheet(tr("border: 1px solid #") + QString::number(Config::Get(Config::GC_CROSSHAIR_COLOR_RGBA) & 0xFFFFFF00, 16) + tr(";"));

m_reduce_bloom->setEnabled(!m_disable_bloom->isChecked());
}

void PrimeWidget::CreateWidgets()
Expand Down Expand Up @@ -182,6 +182,11 @@ void PrimeWidget::ConnectWidgets()
m_manual_arm_position->setEnabled(checked);
PrimeWidget::ArmPositionModeChanged(m_manual_arm_position->isChecked());
});
connect(m_disable_bloom, &QCheckBox::clicked, this,
[=](bool checked)
{
m_reduce_bloom->setEnabled(!checked);
});
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
[=](Core::State state)
{
Expand Down

0 comments on commit a5569c9

Please sign in to comment.