diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-07-03 20:48:37 +0100 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2023-07-03 20:48:37 +0100 |
commit | 64c591b234cec2519d8a04b32d4b6e85dcf204da (patch) | |
tree | 8377cb413ef61cb66ea1ace32687d69a34f2b34b /launcher/Filter.cpp | |
parent | 0e5c37768084cf0772ca2598b4554bf262cb581b (diff) | |
download | PrismLauncher-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.cpp | 6 |
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) { |