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, parentId: contentState.parentId,
contextId: contentState.contextId, contextId: contentState.contextId,
url: Uri.parse(contentState.url), url: Uri.parse(contentState.url),
title: (contentState.title.isNotEmpty) title: contentState.title,
? contentState.title
: current.title,
progress: contentState.progress, progress: contentState.progress,
isPrivate: contentState.isPrivate, isPrivate: contentState.isPrivate,
isFullScreen: contentState.isFullScreen, isFullScreen: contentState.isFullScreen,
@@ -77,7 +77,7 @@ class CompletePageInfo extends _$CompletePageInfo {
ref.listen( ref.listen(
fireImmediately: true, fireImmediately: true,
tabStateProvider(cached.id).select((value) => value?.title.whenNotEmpty), tabStateProvider(cached.id).select((value) => value?.title),
(previous, next) { (previous, next) {
if (next != null) { if (next != null) {
final current = stateOrNull?.value ?? cached; final current = stateOrNull?.value ?? cached;