From 45112a5d661554307ae6c478fd7bc4429e1bbd8b Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Fri, 25 Oct 2024 19:08:29 +0200 Subject: [PATCH] Search by display name too --- itemcontroller.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/itemcontroller.lua b/itemcontroller.lua index f5454a0..30ccff1 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -493,8 +493,7 @@ local PAGES = { emptyCount = emptyCount + 1 return false else - local name = stack:getSimpleName() - return matchFilter(pageState.filter, name) or (pageState.filter:find(":") ~= nil and matchFilter(pageState.filter, stack:getName())) + return matchFilter(pageState.filter, stack:getSimpleName()) or matchFilter(pageState.filter, stack:getDisplayName()) or (pageState.filter:find(":") ~= nil and matchFilter(pageState.filter, stack:getName())) end end)) table.sort(pageState.stacks, SORT_MODE[pageState.sortMode])