You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to achieve the following menu structure in a Greeter app:
Greeting {// The root group and menu
- Style { //A subgroup and a submenu
- Formal //Command
- Informal //Command
}
- Greet //A command
}
However, when trying to do so, I end up with the following menu structure instead:
Greeting {// The root group and menu
- Style { //A subgroup and a submenu
- Formal //Command
- Informal //Command
- Greet //Command, shouldn't be here
}
}
Steps to reproduce
Run the example code below
Click on the Greeting menu and see its structure, which is laid out as mentioned above
Expected behavior
With the proper configuration of parent groups and orders, the menu should be laid out like described in the goal structure.
Screenshots
No response
Environment
Operating System: Ubuntu Mate 22.04 64-bit
Python version: 3.10
Software versions:
Toga: 0.4.2
Logs
Additional context
Here is the example code (the commands are dummy):
Thanks for the report - I can confirm I can reproduce this. It appears to be GTK specific; macOS and Windows both render the menu correctly.
The problem appears to be that the lookup of menu sections isn't contextual; as a result, the greeter is being added to the currently active section (the submenu), rather than the main section of the top level "greeting" menu. I should have a fix for this shortly.
Describe the bug
I would like to achieve the following menu structure in a Greeter app:
However, when trying to do so, I end up with the following menu structure instead:
Steps to reproduce
Expected behavior
With the proper configuration of parent groups and orders, the menu should be laid out like described in the goal structure.
Screenshots
No response
Environment
Logs
Additional context
Here is the example code (the commands are dummy):
Thanks!
The text was updated successfully, but these errors were encountered: