summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MenuBar.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-01-03 01:40:37 +0100
committerGitHub <noreply@github.com>2022-01-03 01:40:37 +0100
commit0de008da11987384c40a8d00aa583000fdabdb02 (patch)
treec6bdb8ed1b2d956bc9b7c85d17d7095d124d014e /Source/Core/DolphinQt/MenuBar.cpp
parent4ee20368f8b5fe16fa19a93852c8563f26ca8856 (diff)
parentd590aa88a4f57e1dda9d9da56c60c6db73206e25 (diff)
Merge pull request #10332 from AdmiralCurtiss/config-port-general
Config: Port remaining General settings to new config system.
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt/MenuBar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp
index 696ec7b020..ea0c235601 100644
--- a/Source/Core/DolphinQt/MenuBar.cpp
+++ b/Source/Core/DolphinQt/MenuBar.cpp
@@ -758,15 +758,15 @@ void MenuBar::AddMovieMenu()
auto* lag_counter = movie_menu->addAction(tr("Show Lag Counter"));
lag_counter->setCheckable(true);
- lag_counter->setChecked(SConfig::GetInstance().m_ShowLag);
+ lag_counter->setChecked(Config::Get(Config::MAIN_SHOW_LAG));
connect(lag_counter, &QAction::toggled,
- [](bool value) { SConfig::GetInstance().m_ShowLag = value; });
+ [](bool value) { Config::SetBaseOrCurrent(Config::MAIN_SHOW_LAG, value); });
auto* frame_counter = movie_menu->addAction(tr("Show Frame Counter"));
frame_counter->setCheckable(true);
- frame_counter->setChecked(SConfig::GetInstance().m_ShowFrameCount);
+ frame_counter->setChecked(Config::Get(Config::MAIN_SHOW_FRAME_COUNT));
connect(frame_counter, &QAction::toggled,
- [](bool value) { SConfig::GetInstance().m_ShowFrameCount = value; });
+ [](bool value) { Config::SetBaseOrCurrent(Config::MAIN_SHOW_FRAME_COUNT, value); });
auto* input_display = movie_menu->addAction(tr("Show Input Display"));
input_display->setCheckable(true);