mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-05 17:22:50 +00:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user