Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
allow deleting custom launchers, fixes #4291
zadam62ccf798ee66
diff --git a/src/public/app/menus/launcher_context_menu.js b/src/public/app/menus/launcher_context_menu.jsindex 179a2a1be6..5f6607f89e 100644--- a/src/public/app/menus/launcher_context_menu.js+++ b/src/public/app/menus/launcher_context_menu.js@@ -32,8 +32,8 @@ export default class LauncherContextMenu {const isVisibleItem = parentNoteId === '_lbVisibleLaunchers';const isAvailableItem = parentNoteId === '_lbAvailableLaunchers';const isItem = isVisibleItem || isAvailableItem;- const canBeDeleted = !note.isLaunchBarConfig();- const canBeReset = note.isLaunchBarConfig();+ const canBeDeleted = !note.noteId.startsWith("_"); // fixed notes can't be deleted+ const canBeReset = !canBeDeleted && note.isLaunchBarConfig();;return [(isVisibleRoot || isAvailableRoot) ? { title: 'Add a note launcher', command: 'addNoteLauncher', uiIcon: "bx bx-plus" } : null,