Change active fg in/out mode when an incompatible one is selected

This does also make the warning silent which might not be ideal. This needs to be moved out of menu code
This commit is contained in:
FakeMichau
2026-03-22 01:20:09 +01:00
parent fe68e62b0f
commit ec9707e73a
+5
View File
@@ -2972,6 +2972,10 @@ bool MenuCommon::RenderMenu()
{
LOG_WARN("Resetting FGInput to NoFG: {}", inputOptions[(uint32_t) state.activeFgInput].label);
config->FGInput = FGInput::NoFG;
// Changing active can be dangerous but we are talking about an unsupported mode
// which shouldn't even actually have taken affect
state.activeFgInput = FGInput::NoFG;
}
// Unsupported FG output selected
@@ -2980,6 +2984,7 @@ bool MenuCommon::RenderMenu()
{
LOG_WARN("Resetting FGOutput to NoFG: {}", outputOptions[(uint32_t) state.activeFgOutput].label);
config->FGOutput = FGOutput::NoFG;
state.activeFgOutput = FGOutput::NoFG;
}
if (!config->FGOutput.has_value())