aboutsummaryrefslogtreecommitdiff
path: root/launcher/Filter.cpp
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-07-03 20:48:37 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-07-03 20:48:37 +0100
commit64c591b234cec2519d8a04b32d4b6e85dcf204da (patch)
tree8377cb413ef61cb66ea1ace32687d69a34f2b34b /launcher/Filter.cpp
parent0e5c37768084cf0772ca2598b4554bf262cb581b (diff)
downloadPrismLauncher-64c591b234cec2519d8a04b32d4b6e85dcf204da.tar.gz
PrismLauncher-64c591b234cec2519d8a04b32d4b6e85dcf204da.tar.bz2
PrismLauncher-64c591b234cec2519d8a04b32d4b6e85dcf204da.zip
Better parent version filtering; handle old fabric :P
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/Filter.cpp')
-rw-r--r--launcher/Filter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/Filter.cpp b/launcher/Filter.cpp
index c65ca0ce..f9530597 100644
--- a/launcher/Filter.cpp
+++ b/launcher/Filter.cpp
@@ -16,6 +16,12 @@ bool ExactFilter::accepts(const QString& value)
return value == pattern;
}
+ExactIfPresentFilter::ExactIfPresentFilter(const QString& pattern) : pattern(pattern) {}
+bool ExactIfPresentFilter::accepts(const QString& value)
+{
+ return value.isEmpty() || value == pattern;
+}
+
RegexpFilter::RegexpFilter(const QString& regexp, bool invert)
:invert(invert)
{