Minor changes
This commit is contained in:
parent
578c822b01
commit
39bfd985bb
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -463,7 +463,7 @@ class FadingAppBarState extends State<FadingAppBar> {
|
|||
showGenericErrorDialog(context: context);
|
||||
} finally {
|
||||
PhotoManager.startChangeNotify();
|
||||
LocalSyncService.instance.checkAndSync();
|
||||
LocalSyncService.instance.checkAndSync().ignore();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue