Note: Do not reload if already loaded

This commit is contained in:
Vishesh Handa
2019-09-26 18:04:35 +02:00
parent 890fd059d4
commit ead10ae087

View File

@ -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;
}