mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +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 {
|
Future<NoteLoadState> load() async {
|
||||||
if (_loadState == NoteLoadState.Loading) {
|
if (_loadState == NoteLoadState.Loading ||
|
||||||
|
_loadState == NoteLoadState.Loaded) {
|
||||||
return _loadState;
|
return _loadState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user