From ead10ae087481fc4ffea87ebffdfff062676a135 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 26 Sep 2019 18:04:35 +0200 Subject: [PATCH] Note: Do not reload if already loaded --- lib/note.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/note.dart b/lib/note.dart index 2b5bb64f..5761f27c 100644 --- a/lib/note.dart +++ b/lib/note.dart @@ -33,7 +33,8 @@ class Note implements Comparable { } Future load() async { - if (_loadState == NoteLoadState.Loading) { + if (_loadState == NoteLoadState.Loading || + _loadState == NoteLoadState.Loaded) { return _loadState; }