track is_private for tabs; add clsoe all private tabs button; close private tabs before exit;
This commit is contained in:
@@ -92,6 +92,7 @@ class TabRepository extends _$TabRepository {
|
||||
},
|
||||
parentId: Value(parentId),
|
||||
containerId: Value(assingedContainer.value?.id),
|
||||
isPrivate: Value(private),
|
||||
);
|
||||
|
||||
if (launchedFromIntent) {
|
||||
@@ -102,7 +103,7 @@ class TabRepository extends _$TabRepository {
|
||||
}
|
||||
|
||||
Future<String> duplicateTab({
|
||||
required String? selectTabId,
|
||||
required String selectTabId,
|
||||
String? containerId,
|
||||
bool selectTab = true,
|
||||
}) async {
|
||||
@@ -124,6 +125,9 @@ class TabRepository extends _$TabRepository {
|
||||
},
|
||||
parentId: const Value.absent(),
|
||||
containerId: Value(containerData?.id),
|
||||
isPrivate: Value(
|
||||
await tabDao.getTabIsPrivate(selectTabId).getSingleOrNull(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -378,6 +382,7 @@ class TabRepository extends _$TabRepository {
|
||||
tabId,
|
||||
parentId: const Value.absent(),
|
||||
containerId: Value(containerId),
|
||||
isPrivate: const Value.absent(),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ final class TabRepositoryProvider
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabRepositoryHash() => r'7af24e759044d1b1b471cdf90a3eb38eef06f61b';
|
||||
String _$tabRepositoryHash() => r'0411e8b3fa9c3e344106f8fa8178bd6eb613309a';
|
||||
|
||||
abstract class _$TabRepository extends $Notifier<void> {
|
||||
void build();
|
||||
|
||||
Reference in New Issue
Block a user