move checkMcVersions to Filter struct
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
859fac604b
commit
6e5f616ced
6 changed files with 12 additions and 17 deletions
|
@ -127,15 +127,3 @@ QDebug operator<<(QDebug debug, const Version& v)
|
|||
|
||||
return debug;
|
||||
}
|
||||
|
||||
bool checkMcVersions(std::list<Version> filter, QStringList value)
|
||||
{
|
||||
bool valid = false;
|
||||
for (auto mcVersion : filter) {
|
||||
if (value.contains(mcVersion.toString())) {
|
||||
valid = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return filter.empty() || valid;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue