mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-17 18:49:55 +08:00
Add a sync button to the AppBar
This somewhat shows what's going on with the network. It isn't ideal, as is a bit ugly. But it's a start to show the network status, and what's going on in the background.
This commit is contained in:
@ -102,7 +102,7 @@ class GitNoteRepository {
|
||||
return _addNote(note, "Edited Note");
|
||||
}
|
||||
|
||||
Future<bool> sync() async {
|
||||
Future<void> sync() async {
|
||||
try {
|
||||
await _gitRepo.pull();
|
||||
} on GitException catch (e, stacktrace) {
|
||||
@ -120,8 +120,6 @@ class GitNoteRepository {
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user