minor changes
This commit is contained in:
parent
c91cd87c28
commit
b63a6966ca
5 changed files with 7 additions and 8 deletions
|
@ -140,6 +140,8 @@ mixin AlbumMixin on SourceBase {
|
|||
final Map<String, AvesEntry?> _filterRecentEntryMap = {};
|
||||
|
||||
void invalidateAlbumFilterSummary({Set<AvesEntry>? entries, Set<String?>? directories}) {
|
||||
if (_filterEntryCountMap.isEmpty && _filterRecentEntryMap.isEmpty) return;
|
||||
|
||||
if (entries == null && directories == null) {
|
||||
_filterEntryCountMap.clear();
|
||||
_filterRecentEntryMap.clear();
|
||||
|
|
|
@ -159,6 +159,8 @@ mixin LocationMixin on SourceBase {
|
|||
final Map<String, AvesEntry?> _filterRecentEntryMap = {};
|
||||
|
||||
void invalidateCountryFilterSummary([Set<AvesEntry>? entries]) {
|
||||
if (_filterEntryCountMap.isEmpty && _filterRecentEntryMap.isEmpty) return;
|
||||
|
||||
Set<String>? countryCodes;
|
||||
if (entries == null) {
|
||||
_filterEntryCountMap.clear();
|
||||
|
|
|
@ -70,6 +70,8 @@ mixin TagMixin on SourceBase {
|
|||
final Map<String, AvesEntry?> _filterRecentEntryMap = {};
|
||||
|
||||
void invalidateTagFilterSummary([Set<AvesEntry>? entries]) {
|
||||
if (_filterEntryCountMap.isEmpty && _filterRecentEntryMap.isEmpty) return;
|
||||
|
||||
Set<String>? tags;
|
||||
if (entries == null) {
|
||||
_filterEntryCountMap.clear();
|
||||
|
|
|
@ -64,6 +64,7 @@ class ViewerDebugPage extends StatelessWidget {
|
|||
'path': entry.path ?? '',
|
||||
'directory': entry.directory ?? '',
|
||||
'filenameWithoutExtension': entry.filenameWithoutExtension ?? '',
|
||||
'extension': entry.extension ?? '',
|
||||
'sourceTitle': entry.sourceTitle ?? '',
|
||||
'sourceMimeType': entry.sourceMimeType,
|
||||
'mimeType': entry.mimeType,
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
import 'package:aves/widgets/aves_app.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('widget test', (tester) async {
|
||||
await tester.pumpWidget(const AvesApp());
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue