moveNote: Do nothing if dest is the current folder

This commit is contained in:
Vishesh Handa
2020-01-29 17:05:21 +01:00
parent 9e520e7e95
commit 56fa627de7

View File

@ -160,6 +160,9 @@ class StateContainerState extends State<StateContainer> {
}
void moveNote(Note note, NotesFolder destFolder) {
if (destFolder.folderPath == note.parent.folderPath) {
return;
}
var oldNotePath = note.filePath;
note.move(destFolder);