Skip to content

Commit

Permalink
Fix #2081: In standalone backup app, corectly nest the help menu cont…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
TeamSpen210 committed Sep 28, 2024
1 parent 1c95204 commit df6ae86
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,9 +889,14 @@ async def init_application(nursery: trio.Nursery) -> None:
set_menu_text(bar, TransToken.ui('Game'))
gameMan.game_menu = game_menu

# Using this name displays this correctly in OS X
help_menu = tk.Menu(bar, name='help')
bar.add_cascade(menu=help_menu)
set_menu_text(bar, TransToken.ui("Help"))

# Add the 'Help' menu here too.
from ui_tk import help_menu
await nursery.start(help_menu.create, bar, TK_IMG)
from ui_tk.help_menu import create as create_help_menu
await nursery.start(create_help_menu, help_menu, TK_IMG)

window['menu'] = bar

Expand Down

0 comments on commit df6ae86

Please sign in to comment.