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