From bc840ecb98a47cf52c97169b4b963cb8f09dd3f2 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Mon, 10 Apr 2023 12:50:31 +0300 Subject: [PATCH] minor formatting changes --- loader/src/ui/internal/list/ModListLayer.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/loader/src/ui/internal/list/ModListLayer.cpp b/loader/src/ui/internal/list/ModListLayer.cpp index fc6c9fd3..4c89fbf5 100644 --- a/loader/src/ui/internal/list/ModListLayer.cpp +++ b/loader/src/ui/internal/list/ModListLayer.cpp @@ -60,7 +60,8 @@ static std::optional queryMatchKeywords( if (!someMatched) { return std::nullopt; } - } else { + } + else { // this is like the dumbest way you could possibly sort alphabetically // but it does enough to make the mods list somewhat alphabetically // sorted, at least enough so that if you're scrolling it based on @@ -120,10 +121,7 @@ static std::optional queryMatch(ModListQuery const& query, IndexItemHandle static std::optional queryMatch(ModListQuery const& query, InvalidGeodeFile const& info) { // if any explicit filters were provided, no match - if ( - query.tags.size() || - query.keywords.has_value() - ) { + if (query.tags.size() || query.keywords.has_value()) { return std::nullopt; } return 0;