Skip to content

Commit

Permalink
Fix broken behavior of custom tesseract params in OCR by #1614
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Jan 22, 2025
1 parent 6f2e687 commit c8b5c61
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.rememberUpdatedState
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -70,6 +71,8 @@ fun TessParamsSelector(
)
},
expandableContent = {
val value by rememberUpdatedState(value)

Column(
verticalArrangement = Arrangement.spacedBy(4.dp),
modifier = Modifier.padding(horizontal = 8.dp)
Expand Down

0 comments on commit c8b5c61

Please sign in to comment.