fix: clear last result on start new file search (#5739)
This commit is contained in:
parent
03745fff89
commit
edcc1e9b43
3 changed files with 15 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class AudioChoiceCard extends StatelessWidget {
|
|||
children: [
|
||||
PhoneticTranscriptionWidget(
|
||||
text: displayText,
|
||||
pos: 'other',
|
||||
textLanguage: textLanguage,
|
||||
textOnly: true,
|
||||
style: theme.textTheme.bodySmall?.copyWith(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue