diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-09-20 08:08:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-20 08:08:32 -0700 |
| commit | 10b3f02385dccf03888efd0d6a9b1e0e7871fb3d (patch) | |
| tree | b64d2762d7b23decbc4d5e82a30aea2f6db559a0 /Source/Core/DolphinQt2/Config/Graphics/GraphicsBool.cpp | |
| parent | d1abd71ccb650e78e27371b19a7e7c861312b787 (diff) | |
| parent | 6c7e392f0c6b8b9dcca2f22060cf823a173552a5 (diff) | |
Merge pull request #6078 from spycrab/qt_fix_bold
Qt/GraphicsSettings: Fix overriden settings not being bolded
Diffstat (limited to 'Source/Core/DolphinQt2/Config/Graphics/GraphicsBool.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/Graphics/GraphicsBool.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt2/Config/Graphics/GraphicsBool.cpp b/Source/Core/DolphinQt2/Config/Graphics/GraphicsBool.cpp index e05e9d94c0..25d390be19 100644 --- a/Source/Core/DolphinQt2/Config/Graphics/GraphicsBool.cpp +++ b/Source/Core/DolphinQt2/Config/Graphics/GraphicsBool.cpp @@ -5,6 +5,7 @@ #include "DolphinQt2/Config/Graphics/GraphicsBool.h" #include "Common/Config/Config.h" +#include "DolphinQt2/Settings.h" #include <QFont> @@ -15,12 +16,11 @@ GraphicsBool::GraphicsBool(const QString& label, const Config::ConfigInfo<bool>& connect(this, &QCheckBox::toggled, this, &GraphicsBool::Update); setChecked(Config::Get(m_setting) ^ reverse); - if (Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base) - { + connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this]() { QFont bf = font(); - bf.setBold(true); + bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base); setFont(bf); - } + }); } void GraphicsBool::Update() |
