few small fixes
This commit is contained in:
@@ -256,6 +256,10 @@ class TabRepository extends _$TabRepository {
|
||||
final syncTabs =
|
||||
next.value.isNotEmpty || (previous?.value.isNotEmpty ?? false);
|
||||
|
||||
if (_previousTabId != null && !next.value.contains(_previousTabId)) {
|
||||
_previousTabId = null;
|
||||
}
|
||||
|
||||
if (syncTabs) {
|
||||
await db.tabDao.syncTabs(retainTabIds: next.value);
|
||||
}
|
||||
|
||||
+1
@@ -49,6 +49,7 @@ class FeedSearch extends HookConsumerWidget {
|
||||
|
||||
return MultiSliver(
|
||||
children: [
|
||||
const SliverToBoxAdapter(child: Divider()),
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 16.0),
|
||||
|
||||
+1
@@ -65,6 +65,7 @@ class TabSearch extends HookConsumerWidget {
|
||||
|
||||
return MultiSliver(
|
||||
children: [
|
||||
const SliverToBoxAdapter(child: Divider()),
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 16.0),
|
||||
|
||||
+1
@@ -8,6 +8,7 @@ typedef DocumentParts = ({String mainDocumentId, List<Document> parts});
|
||||
List<Document> _mergeShortDocuments(
|
||||
List<Document> documents,
|
||||
int maxLength, {
|
||||
// ignore: unused_element_parameter
|
||||
String separator = '\n',
|
||||
required Document Function(Document a, Document b) doMerge,
|
||||
int Function(String) lengthFunction = TextSplitter.defaultLengthFunction,
|
||||
|
||||
+3
-3
@@ -89,10 +89,10 @@ class GeckoBrowserApiImpl : GeckoBrowserApi {
|
||||
synchronized(this) {
|
||||
if(!isGeckoInitialized) {
|
||||
Log.addSink(AndroidLogSink())
|
||||
}
|
||||
|
||||
setupGeckoEngine()
|
||||
isGeckoInitialized = true
|
||||
setupGeckoEngine()
|
||||
isGeckoInitialized = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user