QT: Fix PR 2662 (#2676)

This commit is contained in:
DanielSvoboda 2025-03-23 18:25:11 -03:00 committed by GitHub
parent 99332e4ec2
commit 10bf3d383c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 6 deletions

View file

@ -821,7 +821,7 @@ void SettingsDialog::ResetInstallFolders() {
std::vector<bool> install_dirs_enabled;
try {
install_dirs_enabled = toml::find<std::vector<bool>>(gui, "installDirsEnabled");
install_dirs_enabled = Config::getGameInstallDirsEnabled();
} catch (...) {
// If it does not exist, assume that all are enabled.
install_dirs_enabled.resize(install_dir_array.size(), true);