From 035e3e782a08d3b62c5e84db43391a5dcfbfcd47 Mon Sep 17 00:00:00 2001
From: hinto-janaiyo <hinto.janaiyo@protonmail.com>
Date: Wed, 14 Dec 2022 17:46:44 -0500
Subject: [PATCH] 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.
---
 src/xmrig.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xmrig.rs b/src/xmrig.rs
index e843e80..084aad7 100644
--- a/src/xmrig.rs
+++ b/src/xmrig.rs
@@ -209,7 +209,7 @@ impl Xmrig {
 				if self.rig.is_empty() {
 					text = format!(" Rig [ {}/30 ]➖", len);
 					color = LIGHT_GRAY;
-				} else if Regex::is_match(&regex.name, &self.name) {
+				} else if Regex::is_match(&regex.name, &self.rig) {
 					text = format!(" Rig [ {}/30 ]✔", len);
 					color = GREEN;
 				} else {