diff --git a/lib/repository.dart b/lib/repository.dart index a3fe92d4..5c75f49a 100644 --- a/lib/repository.dart +++ b/lib/repository.dart @@ -332,9 +332,16 @@ class GitJournalRepo with ChangeNotifier { notifyListeners(); } + bool _shouldCheckForChanges() { + if (Platform.isAndroid || Platform.isIOS) { + return !storageConfig.storeInternally; + } + return true; + } + Future syncNotes({bool doNotThrow = false}) async { // This is extremely slow with dart-git, can take over a second! - if (!storageConfig.storeInternally) { + if (_shouldCheckForChanges()) { var repoR = await GitRepository.load(repoPath); if (repoR.isFailure) { Log.e("SyncNotes Failed to Load Repo", result: repoR);