mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
Port some settings to the new config system
Other than the controller settings and JIT debug settings, these are the only settings which were defined in Java code but not defined in the new config system in C++. (There are still a lot of settings that are defined in the new config system but not yet saveable in the new config system, though.)
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
#include "Common/FileUtil.h"
|
||||
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Config/UISettings.h"
|
||||
|
||||
#include "DolphinQt/Settings.h"
|
||||
#include "DolphinQt/Settings/PathPane.h"
|
||||
@ -148,7 +148,7 @@ QGroupBox* PathPane::MakeGameFolderBox()
|
||||
m_remove_path->setEnabled(false);
|
||||
|
||||
auto* recursive_checkbox = new QCheckBox(tr("Search Subfolders"));
|
||||
recursive_checkbox->setChecked(SConfig::GetInstance().m_RecursiveISOFolder);
|
||||
recursive_checkbox->setChecked(Config::Get(Config::MAIN_RECURSIVE_ISO_PATHS));
|
||||
|
||||
auto* auto_checkbox = new QCheckBox(tr("Check for Game List Changes in the Background"));
|
||||
auto_checkbox->setChecked(Settings::Instance().IsAutoRefreshEnabled());
|
||||
@ -160,7 +160,7 @@ QGroupBox* PathPane::MakeGameFolderBox()
|
||||
vlayout->addWidget(auto_checkbox);
|
||||
|
||||
connect(recursive_checkbox, &QCheckBox::toggled, [](bool checked) {
|
||||
SConfig::GetInstance().m_RecursiveISOFolder = checked;
|
||||
Config::SetBase(Config::MAIN_RECURSIVE_ISO_PATHS, checked);
|
||||
Settings::Instance().RefreshGameList();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user