Skip to content

Commit

Permalink
backcompatibility for setup_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed Nov 2, 2024
1 parent 8dcf585 commit 092077c
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 092077c

Please sign in to comment.