From 1d1e6ae782e81f61e034173b1caf1169a437f33d Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 24 Dec 2022 07:22:05 +0100 Subject: [PATCH] disallow dropping notes before/after available/visible launchers --- src/public/app/widgets/note_tree.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index c40a421c1..df2cb92d1 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -439,6 +439,8 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { return false; } else if (node.data.noteType === 'launcher') { return ['before', 'after']; + } else if (['_lbAvailableLaunchers', '_lbVisibleLaunchers'].includes(node.data.noteId)) { + return ['over']; } else { return true; }