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) => {
const res = {
Low: false,
Medium: false,
Ultra: false,
Medium: false,
Low: false,
};
// Update the default value to true
switch (defaultValue) {
case this.low:
res.Low = true;
case this.ultra:
res.Ultra = true;
break;
case this.medium:
res.Medium = true;
break;
case this.ultra:
res.Ultra = true;
case this.low:
res.Low = true;
break;
}
@ -117,14 +117,14 @@ export class Quality {
// Update the quality
switch (quality) {
case "Low":
fnQuality(this.low);
case "Ultra":
fnQuality(this.ultra);
break;
case "Medium":
fnQuality(this.medium);
break;
case "Ultra":
fnQuality(this.ultra);
case "Low":
fnQuality(this.low);
break;
}
};