Minor changes

This commit is contained in:
ashilkn 2023-01-05 09:44:11 +05:30
parent 578c822b01
commit 39bfd985bb
2 changed files with 2 additions and 2 deletions

View file

@ -384,13 +384,13 @@ class LocalSyncService {
// In case of iOS limit permission, this call back is fired immediately
// after file selection dialog is dismissed.
PhotoManager.addChangeCallback((value) async {
_logger.info("Something changed on disk");
checkAndSync();
});
PhotoManager.startChangeNotify();
}
Future<void> checkAndSync() async {
_logger.info("Something changed on disk");
if (_existingSync != null) {
await _existingSync!.future;
}

View file

@ -463,7 +463,7 @@ class FadingAppBarState extends State<FadingAppBar> {
showGenericErrorDialog(context: context);
} finally {
PhotoManager.startChangeNotify();
LocalSyncService.instance.checkAndSync();
LocalSyncService.instance.checkAndSync().ignore();
}
}