show empty title when there is none
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user