From cd224107c3a3b080b50d9d643f860fd4f84ec5f6 Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Fri, 8 Nov 2024 17:53:08 +0100 Subject: [PATCH] Add menu entry for sanity check --- src/appshell/view/appmenumodel.cpp | 3 ++- src/notation/internal/notationuiactions.cpp | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/appshell/view/appmenumodel.cpp b/src/appshell/view/appmenumodel.cpp index 56bfd46ebef86..d72ce07caa999 100644 --- a/src/appshell/view/appmenumodel.cpp +++ b/src/appshell/view/appmenumodel.cpp @@ -457,7 +457,8 @@ MenuItem* AppMenuModel::makeDiagnosticsMenu() makeMenuItem("color-segment-shapes"), makeMenuItem("show-skylines"), makeMenuItem("show-system-bounding-rects"), - makeMenuItem("show-corrupted-measures") + makeMenuItem("show-corrupted-measures"), + makeMenuItem("check-sanity") }; MenuItemList extensionsItems { diff --git a/src/notation/internal/notationuiactions.cpp b/src/notation/internal/notationuiactions.cpp index d7271251a49db..f3b101ffa4b67 100644 --- a/src/notation/internal/notationuiactions.cpp +++ b/src/notation/internal/notationuiactions.cpp @@ -2593,6 +2593,11 @@ const UiActionList NotationUiActions::m_engravingDebuggingActions = { TranslatableString("action", "Show/hide corrupted measures"), Checkable::Yes ), + UiAction("check-sanity", + mu::context::UiCtxProjectOpened, + mu::context::CTX_NOTATION_OPENED, + TranslatableString("action", "Check score sanity") + ), UiAction("edit-strings", mu::context::UiCtxProjectOpened, mu::context::CTX_NOTATION_OPENED