FullscreenUI: Fix 'Use Global Setting' showing in global postfx settings

pull/3794/head
Stenzek 2 weeks ago
parent 7d169057db
commit e05b9b9f92
No known key found for this signature in database

@ -5309,7 +5309,8 @@ void FullscreenUI::DrawPostProcessingSettingsPage()
MenuHeading(FSUI_VSTR("Border Overlay")); MenuHeading(FSUI_VSTR("Border Overlay"));
{ {
const std::optional<TinyString> preset_name = bsi->GetOptionalTinyStringValue("BorderOverlay", "PresetName"); const std::optional<TinyString> preset_name = bsi->GetOptionalTinyStringValue(
"BorderOverlay", "PresetName", IsEditingGameSettings(bsi) ? std::nullopt : std::make_optional(""));
const bool is_null = !preset_name.has_value(); const bool is_null = !preset_name.has_value();
const bool is_none = (!is_null && preset_name->empty()); const bool is_none = (!is_null && preset_name->empty());
const bool is_custom = (!is_null && preset_name.value() == "Custom"); const bool is_custom = (!is_null && preset_name.value() == "Custom");

Loading…
Cancel
Save