mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-11 21:43:47 +08:00

This way all the persistant state of the app is managed from the same place. It makes everything much easier. Also, it's required for when GitJournal supports multiple repositories.
21 lines
313 B
Dart
21 lines
313 B
Dart
import 'package:gitjournal/core/notes_folder_fs.dart';
|
|
|
|
enum SyncStatus {
|
|
Unknown,
|
|
Done,
|
|
Pulling,
|
|
Pushing,
|
|
Error,
|
|
}
|
|
|
|
class AppState {
|
|
SyncStatus syncStatus = SyncStatus.Unknown;
|
|
int numChanges = 0;
|
|
|
|
bool get hasJournalEntries {
|
|
return notesFolder.hasNotes;
|
|
}
|
|
|
|
NotesFolderFS notesFolder;
|
|
}
|