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/GraphicsChoice.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/GraphicsChoice.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/Graphics/GraphicsChoice.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt2/Config/Graphics/GraphicsChoice.cpp b/Source/Core/DolphinQt2/Config/Graphics/GraphicsChoice.cpp index 65546ed718..ccc8d4a9fb 100644 --- a/Source/Core/DolphinQt2/Config/Graphics/GraphicsChoice.cpp +++ b/Source/Core/DolphinQt2/Config/Graphics/GraphicsChoice.cpp @@ -5,6 +5,7 @@ #include "DolphinQt2/Config/Graphics/GraphicsChoice.h" #include "Common/Config/Config.h" +#include "DolphinQt2/Settings.h" GraphicsChoice::GraphicsChoice(const QStringList& options, const Config::ConfigInfo<int>& setting) : m_setting(setting) @@ -14,12 +15,14 @@ GraphicsChoice::GraphicsChoice(const QStringList& options, const Config::ConfigI &GraphicsChoice::Update); setCurrentIndex(Config::Get(m_setting)); - if (Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base) - { - QFont bf = font(); - bf.setBold(true); - setFont(bf); - } + connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this]() { + if (Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base) + { + QFont bf = font(); + bf.setBold(true); + setFont(bf); + } + }); } void GraphicsChoice::Update(int choice) |
