Skip to content

Commit

Permalink
Update menu construction on web.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Dec 21, 2023
1 parent 0208063 commit c2974a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web/src/toga_web/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import toga
from toga.command import GROUP_BREAK, SECTION_BREAK
from toga.command import Separator
from toga_web.libs import create_element, js
from toga_web.window import Window

Expand Down Expand Up @@ -66,9 +66,7 @@ def create_menus(self):
submenu = None

for cmd in self.interface.commands:
if cmd == GROUP_BREAK:
submenu = None
elif cmd == SECTION_BREAK:
if isinstance(cmd, Separator):
# TODO - add a section break
pass
else:
Expand Down

0 comments on commit c2974a7

Please sign in to comment.