mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
Log why the note was modified
We are getting bug reports about the modified tag being changed even when the note hasn't been modified.
This commit is contained in:
@ -226,7 +226,12 @@ class NoteEditorState extends State<NoteEditor> {
|
|||||||
}
|
}
|
||||||
var serializer = MarkdownYAMLSerializer();
|
var serializer = MarkdownYAMLSerializer();
|
||||||
var finalNoteSerialized = serializer.encode(note.data);
|
var finalNoteSerialized = serializer.encode(note.data);
|
||||||
return finalNoteSerialized != noteSerialized;
|
bool modified = finalNoteSerialized != noteSerialized;
|
||||||
|
if (modified) {
|
||||||
|
print("Original Serialization: " + noteSerialized);
|
||||||
|
print("New Serialization: " + finalNoteSerialized);
|
||||||
|
}
|
||||||
|
return modified;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _saveNote(Note note) {
|
void _saveNote(Note note) {
|
||||||
|
Reference in New Issue
Block a user