Menu buttons missing after mapping using "splitview"

Issue #3 resolved
Matthias Schoettle created an issue

When an aspect is loaded (or created), the menu contains a number of buttons. Going into the "splitview" when instantiating an aspect, removed some buttons, which are added back once mappings are done. However, some buttons are missing.

I think that currently there is a discrepancy between the initial creation of the menu and when it is "re-enabled". It probably happens, when someone adds a new button to the menu, but it is not added again. Maybe the implementation can be improved such that a createMainMenu method creates the normal menu and a createSplitViewMenu creates the limited menu. When going back, this method gets called. However, the buttons should only be created once and just be hidden. This way, there will never be any discrepancy.

Comments (3)

  1. Matthias Schoettle reporter

    Resolved with commit 77558b3.

    Adding of buttons to menu moved to method showMainMenuButtons (was also renamed to this name), which got already called by the instantiation split view handler to re-enable the regular menu again. This makes sure that adding of buttons is consistent (only added in one location).

  2. Log in to comment