code refactor
This commit is contained in:
parent
f3607f36ea
commit
95f841a064
1 changed files with 8 additions and 6 deletions
|
|
@ -2498,15 +2498,16 @@ class DataChecker {
|
||||||
case "grub33":
|
case "grub33":
|
||||||
case "grub34":
|
case "grub34":
|
||||||
|
|
||||||
if (this.entries.grub32.icon === "green") {
|
if (this.entries.grub32.icon === "green") {
|
||||||
SetIconGreen(this.section, entry);
|
SetIconGreen(this.section, entry);
|
||||||
} else {
|
} else {
|
||||||
SetIconRed(this.section, entry);
|
SetIconRed(this.section, entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
if (this._FindItem(this.entries[entry])) {
|
if (this._FindItem(this.entries[entry])) {
|
||||||
SetIconGreen(this.section, entry);
|
SetIconGreen(this.section, entry);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -2529,6 +2530,7 @@ class DataChecker {
|
||||||
switch(entry) {
|
switch(entry) {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
if (this._FindGeoRock(this.entries[entry])) {
|
if (this._FindGeoRock(this.entries[entry])) {
|
||||||
SetIconGreen(this.section, entry);
|
SetIconGreen(this.section, entry);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue