feat: refine LUT category selection logic

This commit is contained in:
Hinnka committed 2026-05-17 12:54:22 +08:00
1 parent cad2fea984
commit 9a94fe75db
1 file changed
+1 -1
@@ -152,8 +152,8 @@ fun LutSelector(
LaunchedEffect(activeLutId, availableLuts, categoryTabs) {
val selectedLut = availableLuts.find { it.id == activeLutId }
selectedCategory = when {
selectedLut?.isFavorite == true -> LutCategoryTab.Favorite
selectedLut != null && selectedCategory.contains(selectedLut) -> selectedCategory
selectedLut?.isFavorite == true -> LutCategoryTab.Favorite
selectedLut != null -> preferredCategoryFor(selectedLut)
selectedCategory in categoryTabs -> selectedCategory
else -> LutCategoryTab.BuiltIn