Skip to content

Commit

Permalink
Fix for OS X crash on exit: moved FontMapping* action to separate menu
Browse files Browse the repository at this point in the history
Still don't know why, but including those actions in the same menu as the ANTIC font items crashed. I thought it was because I was using the same SMenu id which resulted in getting the actions added into the Antic Mode menu, but putting the Groups into the same SMenu still crashed. I thought it might be something to do with the Group ids being reused, so I changed the "a1", "a2", etc to something else, but that didn't work either. Ultimately, moving the FontMapping* stuff into its own SMenu with a different id worked.

Maybe because there were multiple generic Actions in different groups that got added into the same menu? Or because they were both radio buttons?
  • Loading branch information
Rob McMullen committed Nov 23, 2015
1 parent 0baccc9 commit 76d7998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion omnimon/_omnimon_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.1.1"
version = "0.2.0"
4 changes: 1 addition & 3 deletions omnimon/tasks/hex_edit/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,10 @@ def get_actions(self, location, menu_name, group_name):
Group(
*font_mapping_actions,
id="a2", separator=True),
id='FontChoiceSubmenu2', separator=True, name="Antic Font Mapping"),
SMenu(
Group(
FontMappingWidthAction(),
id="a3", separator=True),
id='FontChoiceSubmenu2', separator=True, name="Antic Font Width"),
id='FontChoiceSubmenu2a1', separator=True, name="Char Map"),
SMenu(
Group(
UseColorsAction(name="Powerup Colors", colors=colors.powerup_colors()),
Expand Down

0 comments on commit 76d7998

Please sign in to comment.