Skip to content

Commit

Permalink
Merge pull request #2294 from freakboy3742/prerelease-bugs
Browse files Browse the repository at this point in the history
Prerelease bugs
  • Loading branch information
freakboy3742 authored Dec 21, 2023
2 parents de1b76f + 7a8fcea commit bad6340
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions changes/2294.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Some minor bugs and inconsistencies discovered during pre-release testing were corrected.
2 changes: 1 addition & 1 deletion demo/toga_demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def startup(self):
self.action2,
"Action 2",
tooltip="Perform action 2",
icon=toga.Icon.TOGA_ICON,
icon=toga.Icon.DEFAULT_ICON,
)

self.main_window.toolbar.add(cmd1, cmd2)
Expand Down
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 bad6340

Please sign in to comment.