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