Note: Not all files end with a '.md'

This was only supposed to be done for new files
This commit is contained in:
Vishesh Handa
2020-05-14 16:58:16 +02:00
parent 109b5f7d37
commit db37bfbf81

View File

@ -58,10 +58,13 @@ class Note with NotesNotifier {
}
String get filePath {
_filePath ??= p.join(parent.folderPath, getFileName(this));
if (_filePath == null) {
_filePath = p.join(parent.folderPath, getFileName(this));
if (!_filePath.toLowerCase().endsWith('.md')) {
_filePath += '.md';
}
}
return _filePath;
}