Ticket #631 (Open)Sat Mar 30 13:34:34 UTC 2024
FrontEnd Inclusions and Exclusions menu entries out by 1
Reported by: | Richard Coleman (3190) | Severity: | Normal |
Part: | RISC OS: Module | Release: | |
Milestone: | Status | Open |
Details by Richard Coleman (3190):
In the Inclusions and Exclusions sections of the FrontEnd Desc file, the menu entries that are to be included or excluded have to be increased by 1 otherwise the wrong menu entries are enabled/disabled.
For example:
menu_start
“Menu entry 1”;
“Menu entry 2”;
“Menu entry 3”;
“Menu entry 4”;
menu_end
exclusions_start
menu 1 on excludes menu 2, menu 4;
exclusions_end
Clicking on menu entry 1 should disable menu entries 2 and 4. instead it disables entries 1 and 3.
To disable menu entries 2 and 4 we need:
exclusions_start
menu 1 on excludes menu 3, menu 5;
exclusions_end
The inclusions section exhibits the same behaviour.
Changelog:
Modified by Richard Coleman (3190) Thu, April 04 2024 - 08:06:32 GMT
Fix added to c.utils in do__exclude_rules() and do__include_rules() to add 1 to the find_menuentry() calls in lines 297 and 372.
DDE applications !ObjAsm and !Link will need the “excludes menu” entries in their Desc files amending to subtract one from the menu number.
Updated Desc files added to the merge request https://gitlab.riscosopen.org/RiscOS/Sources/Pr….
These are the only FrontEnd applications, along with the application I’m developing, I’ve been able to find that disable menu entries and so be affected by this fix.
Modified by Sprow (202) Fri, August 02 2024 - 17:15:37 GMT
- Part changed from RISC OS: C/C++ toolchain to RISC OS: Module