From 56fa627de77e035245dd5432ad1bf14b8440934b Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 29 Jan 2020 17:05:21 +0100 Subject: [PATCH] moveNote: Do nothing if dest is the current folder --- lib/state_container.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/state_container.dart b/lib/state_container.dart index 12dee38a..321b3724 100644 --- a/lib/state_container.dart +++ b/lib/state_container.dart @@ -160,6 +160,9 @@ class StateContainerState extends State { } void moveNote(Note note, NotesFolder destFolder) { + if (destFolder.folderPath == note.parent.folderPath) { + return; + } var oldNotePath = note.filePath; note.move(destFolder);