show empty title when there is none

This commit is contained in:
Fabian Freund
2025-09-26 16:10:36 +02:00
parent 9ec56ac62a
commit 9a0c00f842
2 changed files with 2 additions and 4 deletions
@@ -49,9 +49,7 @@ class TabStates extends _$TabStates {
parentId: contentState.parentId,
contextId: contentState.contextId,
url: Uri.parse(contentState.url),
title: (contentState.title.isNotEmpty)
? contentState.title
: current.title,
title: contentState.title,
progress: contentState.progress,
isPrivate: contentState.isPrivate,
isFullScreen: contentState.isFullScreen,
@@ -77,7 +77,7 @@ class CompletePageInfo extends _$CompletePageInfo {
ref.listen(
fireImmediately: true,
tabStateProvider(cached.id).select((value) => value?.title.whenNotEmpty),
tabStateProvider(cached.id).select((value) => value?.title),
(previous, next) {
if (next != null) {
final current = stateOrNull?.value ?? cached;