mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 09:06:43 +08:00
Note: Do not reload if already loaded
This commit is contained in:
@ -33,7 +33,8 @@ class Note implements Comparable<Note> {
|
||||
}
|
||||
|
||||
Future<NoteLoadState> load() async {
|
||||
if (_loadState == NoteLoadState.Loading) {
|
||||
if (_loadState == NoteLoadState.Loading ||
|
||||
_loadState == NoteLoadState.Loaded) {
|
||||
return _loadState;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user