remove bit-depth for automatic codec

This commit is contained in:
Patrick Nicolas
2025-12-10 14:32:05 +01:00
parent 0b526cef9d
commit db345c832d
+4 -1
View File
@@ -307,7 +307,10 @@ bool Settings::tenbit() const
void Settings::set_tenbit(const bool & value)
{
auto old = tenbit();
m_jsonSettings["bit-depth"] = value ? 10 : 8;
if (codec() == CodecAuto)
m_jsonSettings.erase("bit-depth");
else
m_jsonSettings["bit-depth"] = value ? 10 : 8;
if (value != old)
tenbitChanged();
}