feat: refine LUT category selection logic
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user