refresh lists on source change and sync

This commit is contained in:
austinried
2025-11-22 17:39:57 +09:00
parent 798a907cca
commit b6153ce3b6
5 changed files with 37 additions and 23 deletions

View File

@@ -1,13 +1,14 @@
import 'package:async/async.dart';
import 'package:collection/collection.dart';
import 'package:drift/drift.dart';
import 'package:flutter/foundation.dart';
import '../database/database.dart';
import '../sources/music_source.dart';
const kSliceSize = 200;
class SyncService {
class SyncService with ChangeNotifier {
SyncService({
required this.source,
required this.db,
@@ -28,6 +29,7 @@ class SyncService {
syncPlaylistSongs(),
]);
});
notifyListeners();
}
Future<void> syncArtists() async {