Skip to content

Commit

Permalink
Merge pull request #10 from PyMoDAQ/hotfix/setup_menu_custom_app
Browse files Browse the repository at this point in the history
backcompatibility for setup_menu
  • Loading branch information
seb5g authored Nov 2, 2024
2 parents 8dcf585 + 092077c commit 95a3fca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pymodaq_gui/utils/custom_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def setup_ui(self):

self.setup_actions() # see ActionManager MixIn class

self.setup_menu(self._menubar)
try:
self.setup_menu(self._menubar)
except TypeError:
self.setup_menu() # for backcompatibility

self.connect_things()

Expand Down

0 comments on commit 95a3fca

Please sign in to comment.