Discard changed events until settings are loaded

This commit is contained in:
Patrick Nicolas
2025-11-02 17:58:21 +01:00
parent a67673327b
commit b383aa4c20
2 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -206,6 +206,7 @@ Settings::encoder_name Settings::encoder() const
void Settings::set_encoder(const encoder_name & value)
{
auto old = encoder();
auto old_codec = codec();
switch (value)
{
case EncoderAuto:
@@ -237,10 +238,11 @@ void Settings::set_encoder(const encoder_name & value)
if (value != old)
{
encoderChanged();
codecChanged();
if (not can10bit())
set_tenbit(false);
}
if (old_codec != codec())
codecChanged();
simpleConfigChanged();
}