mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-08 09:00:54 +08:00
Note: Do not change the body if it hasn't been modified
I'm scared that for very large notes this won't be very fast, on the other hand changing the body results in many other fields being re-computed.
This commit is contained in:
@ -109,6 +109,10 @@ class Note with NotesNotifier {
|
||||
}
|
||||
|
||||
set body(String newBody) {
|
||||
if (newBody == _body) {
|
||||
return;
|
||||
}
|
||||
|
||||
_body = newBody;
|
||||
_summary = null;
|
||||
_links = null;
|
||||
|
Reference in New Issue
Block a user