change order

This commit is contained in:
Mylloon 2022-12-01 22:28:14 +01:00
parent 27a349b521
commit fa340421eb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -78,21 +78,21 @@ export class Quality {
*/ */
static buildGUI = (defaultValue) => { static buildGUI = (defaultValue) => {
const res = { const res = {
Low: false,
Medium: false,
Ultra: false, Ultra: false,
Medium: false,
Low: false,
}; };
// Update the default value to true // Update the default value to true
switch (defaultValue) { switch (defaultValue) {
case this.low: case this.ultra:
res.Low = true; res.Ultra = true;
break; break;
case this.medium: case this.medium:
res.Medium = true; res.Medium = true;
break; break;
case this.ultra: case this.low:
res.Ultra = true; res.Low = true;
break; break;
} }
@ -117,14 +117,14 @@ export class Quality {
// Update the quality // Update the quality
switch (quality) { switch (quality) {
case "Low": case "Ultra":
fnQuality(this.low); fnQuality(this.ultra);
break; break;
case "Medium": case "Medium":
fnQuality(this.medium); fnQuality(this.medium);
break; break;
case "Ultra": case "Low":
fnQuality(this.ultra); fnQuality(this.low);
break; break;
} }
}; };