Change wording slightly

This commit is contained in:
Myned
2020-05-21 00:52:41 -04:00
parent 463b54f1fb
commit f00c244bfa
5 changed files with 14 additions and 14 deletions

View File

@@ -341,15 +341,15 @@ void GetProcessList(QStringList &processes)
}
}
bool isInFocus(const QString &exeToCheck)
bool isInFocus(const QString &executable)
{
string curWindow;
GetCurrentWindowTitle(curWindow);
string current;
GetCurrentWindowTitle(current);
// True if executable switch equals current window
bool equals = (exeToCheck.toStdString() == curWindow);
bool equals = (executable.toStdString() == current);
// True if executable switch matches current window
bool matches = QString::fromStdString(curWindow).contains(QRegularExpression(exeToCheck));
bool matches = QString::fromStdString(current).contains(QRegularExpression(executable));
return (equals || matches);
}