fix: view title doesn't update after renaming from 'more' button (#6309)

This commit is contained in:
Lucas 2024-09-16 09:32:32 +08:00 committed by GitHub
parent 12c575dbbe
commit 7e0de1f69c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ class _DocumentImmersiveCoverState extends State<DocumentImmersiveCover> {
child: BlocConsumer<DocumentImmersiveCoverBloc,
DocumentImmersiveCoverState>(
listener: (context, state) {
if (textEditingController.text.isEmpty) {
if (textEditingController.text != state.name) {
textEditingController.text = state.name;
}
},