Swap position of "Low" & "High" values in "Visual quality" setting

This commit is contained in:
redphx 2024-03-20 17:27:03 +07:00
parent b11a89037a
commit 0d80edb7cb

View File

@ -7155,13 +7155,14 @@ class Preferences {
}
}
if (hasLowCodec) {
if (!hasNormalCodec && !hasHighCodec) {
options.default = `${t('visual-quality-low')} (${t('default')})`;
if (hasHighCodec) {
if (!hasLowCodec && !hasNormalCodec) {
options.default = `${t('visual-quality-high')} (${t('default')})`;
} else {
options.low = t('visual-quality-low');
options.high = t('visual-quality-high');
}
}
if (hasNormalCodec) {
if (!hasLowCodec && !hasHighCodec) {
options.default = `${t('visual-quality-normal')} (${t('default')})`;
@ -7169,11 +7170,12 @@ class Preferences {
options.normal = t('visual-quality-normal');
}
}
if (hasHighCodec) {
if (!hasLowCodec && !hasNormalCodec) {
options.default = `${t('visual-quality-high')} (${t('default')})`;
if (hasLowCodec) {
if (!hasNormalCodec && !hasHighCodec) {
options.default = `${t('visual-quality-low')} (${t('default')})`;
} else {
options.high = t('visual-quality-high');
options.low = t('visual-quality-low');
}
}