source: dismiss changes if only loaded for specific directory
This commit is contained in:
parent
ada3c2908b
commit
618b63bfc0
1 changed files with 4 additions and 0 deletions
|
@ -329,6 +329,10 @@ class MediaStoreSource extends CollectionSource {
|
|||
}
|
||||
|
||||
void onStoreChanged(String? uri) {
|
||||
// dismiss changes if the source is only loaded to view a specific directory
|
||||
// to let the main instance handle the change in the database
|
||||
if (_initState == SourceInitializationState.directory) return;
|
||||
|
||||
if (uri != null) _changedUris.add(uri);
|
||||
if (_changedUris.isNotEmpty) {
|
||||
_changeDebouncer(() async {
|
||||
|
|
Loading…
Reference in a new issue