make home screen consider containers as well
This commit is contained in:
1 parent
4354f7ed06
commit
305377c0af
6 files changed
+293
-50
No files matched your search
@@ -300,6 +300,20 @@ class TabRepository extends _$TabRepository {
|
||||
return selectTab(latestTab.id);
|
||||
}
|
||||
|
||||
Future<bool> resumeLatestContainerTab(String? containerId) async {
|
||||
final latestTab = await ref
|
||||
.read(tabDatabaseProvider)
|
||||
.tabDao
|
||||
.getContainerTabsFifo(containerId, limit: 1)
|
||||
.getSingleOrNull();
|
||||
|
||||
if (!ref.mounted || latestTab == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return selectTab(latestTab.id);
|
||||
}
|
||||
|
||||
Future<bool> selectPreviousTab(
|
||||
String tabId, {
|
||||
String? containerId,
|
||||
|
||||
Reference in new issue
Block a user