mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-25 08:12:19 +08:00
moveNote: Do nothing if dest is the current folder
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user