NoteEditor: Do not save a note if it has not been modified

This would result in empty commits :(
This commit is contained in:
Vishesh Handa
2019-10-11 17:24:48 +02:00
parent e9cfb1fde7
commit 704c8f4ce1

View File

@ -168,6 +168,8 @@ class NoteEditorState extends State<NoteEditor> {
}
void _saveNote(BuildContext context) {
if (!_noteModified()) return;
final stateContainer = StateContainer.of(context);
if (rawEditor == false) {
note.body = _textController.text;