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.h | |
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.h')
-rw-r--r-- | launcher/Filter.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/launcher/Filter.h b/launcher/Filter.h index b55067ac..d3cee2d8 100644 --- a/launcher/Filter.h +++ b/launcher/Filter.h @@ -30,6 +30,16 @@ private: QString pattern; }; +class ExactIfPresentFilter: public Filter +{ + public: + ExactIfPresentFilter(const QString& pattern); + ~ExactIfPresentFilter() override = default; + bool accepts(const QString& value) override; + private: + QString pattern; +}; + class RegexpFilter: public Filter { public: |