mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-04 17:16:50 +02:00
fix(runtime): bound resources and quarantine stalled extensions
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:spotiflac_android/widgets/app_bottom_sheet.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
@@ -36,19 +38,21 @@ class DuplicateReviewSheet extends ConsumerStatefulWidget {
|
||||
}
|
||||
|
||||
class _DuplicateReviewSheetState extends ConsumerState<DuplicateReviewSheet> {
|
||||
late final LocalLibraryNotifier _localLibraryNotifier;
|
||||
late Future<List<IsrcDuplicateGroup>> _groupsFuture;
|
||||
bool _deletedLocalRows = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_localLibraryNotifier = ref.read(localLibraryProvider.notifier);
|
||||
_groupsFuture = LibraryDatabase.instance.findIsrcDuplicateGroups();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
if (_deletedLocalRows) {
|
||||
ref.read(localLibraryProvider.notifier).reloadFromStorage();
|
||||
unawaited(_localLibraryNotifier.reloadFromStorage());
|
||||
}
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user