fix: clear last result on start new file search (#5739)

This commit is contained in:
ggurdin 2026-02-18 10:43:06 -05:00 committed by GitHub
parent 03745fff89
commit edcc1e9b43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 10 deletions

View file

@ -120,16 +120,19 @@ class ChatSearchController extends State<ChatSearchPage>
}
void _onTabChanged() {
switch (tabController.index) {
case 1:
case 2:
startSearch();
break;
case 0:
default:
restartSearch();
break;
}
// #Pangea
restartSearch();
// switch (tabController.index) {
// case 1:
// case 2:
// startSearch();
// break;
// case 0:
// default:
// restartSearch();
// break;
// }
// Pangea#
}
@override

View file

@ -340,6 +340,7 @@ class _AudioCompletionWidget extends StatelessWidget {
padding: const EdgeInsets.only(bottom: 8.0),
child: PhoneticTranscriptionWidget(
text: exampleText,
pos: 'other',
textLanguage: MatrixState
.pangeaController
.userController

View file

@ -47,6 +47,7 @@ class AudioChoiceCard extends StatelessWidget {
children: [
PhoneticTranscriptionWidget(
text: displayText,
pos: 'other',
textLanguage: textLanguage,
textOnly: true,
style: theme.textTheme.bodySmall?.copyWith(