Skip to content

Commit 3b8a4c8

Browse files
committed
fix: window blacklist not working
1 parent e04dadc commit 3b8a4c8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/src/cn/harryh/arkpets/ArkPets.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,10 @@ private HWndCtrl refreshWindowIndex() {
418418
if (wndNum == -1) {
419419
boolean isBlackListWindow = false;
420420
for (Pattern pattern : Const.titleBlacklist) {
421-
isBlackListWindow = pattern.matcher(hWndCtrl.windowText).matches();
421+
if (pattern.matcher(hWndCtrl.windowText).find()) {
422+
isBlackListWindow = true;
423+
break;
424+
}
422425
}
423426
if (isBlackListWindow) continue;
424427
if (hWndCtrl.posLeft <= myPos && myPos <= hWndCtrl.posRight) {

0 commit comments

Comments
 (0)