mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-08 20:58:41 +00:00
Hotfix: fix creating new game config and loading experimental tab (#3600)
This commit is contained in:
@@ -100,12 +100,6 @@ public:
|
||||
void setTomlValue(toml::ordered_value& data, const std::string& header, const std::string& key,
|
||||
bool is_game_specific = false) {
|
||||
if (is_game_specific) {
|
||||
if (game_specific_value == std::nullopt) {
|
||||
fmt::print("Attempted to save std::nullopt value to {}-{}, matching config entry "
|
||||
"may not be correctly set-up\n",
|
||||
header, key);
|
||||
return;
|
||||
}
|
||||
data[header][key] = game_specific_value.value_or(base_value);
|
||||
game_specific_value = std::nullopt;
|
||||
} else {
|
||||
|
||||
@@ -736,8 +736,9 @@ void SettingsDialog::LoadValuesFromConfig() {
|
||||
}
|
||||
ui->chooseHomeTabComboBox->setCurrentText(translatedText);
|
||||
|
||||
QStringList tabNames = {tr("General"), tr("GUI"), tr("Graphics"), tr("User"),
|
||||
tr("Input"), tr("Paths"), tr("Log"), tr("Debug")};
|
||||
QStringList tabNames = {tr("General"), tr("GUI"), tr("Graphics"),
|
||||
tr("User"), tr("Input"), tr("Paths"),
|
||||
tr("Log"), tr("Debug"), tr("Experimental")};
|
||||
int indexTab = tabNames.indexOf(translatedText);
|
||||
if (indexTab == -1 || !ui->tabWidgetSettings->isTabVisible(indexTab) || is_newly_created)
|
||||
indexTab = 0;
|
||||
|
||||
Reference in New Issue
Block a user