refactor(options): remove unnecessary ribbon activation option

This commit is contained in:
Elian Doran
2025-11-30 10:41:26 +02:00
parent fa224e46bc
commit d9e8f8e69b
4 changed files with 1 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ export const RIBBON_TAB_DEFINITIONS: TabConfiguration[] = [
icon: "bx bx-calendar-edit",
content: EditedNotesTab,
show: ({ note }) => note?.hasOwnedLabel("dateNote"),
activate: ({ note }) => (note?.getPromotedDefinitionAttributes().length === 0 || !options.is("promotedAttributesOpenInRibbon")) && options.is("editedNotesOpenInRibbon")
activate: () => options.is("editedNotesOpenInRibbon")
},
{
title: t("book_properties.book_properties"),