diff --git a/data/gui.xml b/data/gui.xml index 38bfd8fee..4e01f20e6 100644 --- a/data/gui.xml +++ b/data/gui.xml @@ -1024,8 +1024,8 @@ - - + + diff --git a/src/app/app_menus.cpp b/src/app/app_menus.cpp index db03632d3..a9cb6990b 100644 --- a/src/app/app_menus.cpp +++ b/src/app/app_menus.cpp @@ -393,6 +393,20 @@ void AppMenus::reload() #endif } + // Remove the "Enter license" menu item when DRM is not enabled. +#ifndef ENABLE_DRM + if (auto helpMenuItem = m_rootMenu->findItemById("help_menu")) { + if (Menu* helpMenu = dynamic_cast(helpMenuItem)->getSubmenu()) { + delete helpMenu->findChild("enter_license_separator"); + delete helpMenu->findChild("enter_license"); + } + + auto it = m_groups.find("help_enter_license"); + if (it != m_groups.end()) + m_groups.erase(it); + } +#endif + //////////////////////////////////////// // Re-add menu items in groups (recent files & scripts)