mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-25 07:36:45 +00:00
Check correctness of FG settings when menu is opened
This commit is contained in:
@@ -3193,6 +3193,18 @@ bool MenuCommon::RenderMenu()
|
||||
|
||||
constexpr auto fgOutputOptionsCount = std::size(fgOutputOptions);
|
||||
|
||||
// Unsupported FG input selected
|
||||
if (disabledMaskInput[(uint32_t) state.activeFgInput] && state.activeFgInput == config->FGInput)
|
||||
{
|
||||
config->FGInput = FGInput::NoFG;
|
||||
}
|
||||
|
||||
// Unsupported FG output selected
|
||||
if (disabledMaskOutput[(uint32_t) state.activeFgOutput] && state.activeFgOutput == config->FGOutput)
|
||||
{
|
||||
config->FGOutput = FGOutput::NoFG;
|
||||
}
|
||||
|
||||
if (!config->FGOutput.has_value())
|
||||
config->FGOutput = config->FGOutput.value_or_default(); // need to have a value before combo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user