fix(runtime): bound resources and quarantine stalled extensions

This commit is contained in:
zarzet
2026-08-26 21:09:05 +07:00
parent 0e3fca9967
commit 747dea886c
18 changed files with 402 additions and 35 deletions
+5 -1
View File
@@ -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();
}