mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
xmrig: fix [Rig] check using [self.name] value
In XMRig Advanced the color/checkmark code was being given [self.name] instead of [self.rig] which caused them to be linked, e.g: you clear "Name" and [Rig] goes red instead.
This commit is contained in:
parent
631e4cc2db
commit
035e3e782a
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ impl Xmrig {
|
||||||
if self.rig.is_empty() {
|
if self.rig.is_empty() {
|
||||||
text = format!(" Rig [ {}/30 ]➖", len);
|
text = format!(" Rig [ {}/30 ]➖", len);
|
||||||
color = LIGHT_GRAY;
|
color = LIGHT_GRAY;
|
||||||
} else if Regex::is_match(®ex.name, &self.name) {
|
} else if Regex::is_match(®ex.name, &self.rig) {
|
||||||
text = format!(" Rig [ {}/30 ]✔", len);
|
text = format!(" Rig [ {}/30 ]✔", len);
|
||||||
color = GREEN;
|
color = GREEN;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue