File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3131 read_modal_fit_data , ModalTest )
3232from . import doc
3333
34- __version__ = "0.14.1 "
34+ __version__ = "0.14.2 "
3535
3636# Pull things in for easier access
3737SdynpyArray = array .SdynpyArray
Original file line number Diff line number Diff line change @@ -1055,7 +1055,9 @@ def add_menu_bar(self) -> None:
10551055 super ().add_menu_bar ()
10561056
10571057 # Get the file menu
1058- file_menu = self .main_menu .findChildren (QMenu )[0 ]
1058+ file_menu = [child for child in self .main_menu .children ()
1059+ if child .__class__ .__name__ == 'QMenu'
1060+ and child .title () == 'File' ][0 ]
10591061 self .save_animation_action = pvqt .plotting .QAction ('Save Animation' )
10601062 self .save_animation_action .triggered .connect (self .save_animation_from_action )
10611063 file_menu .insertAction (file_menu .actions ()[1 ], self .save_animation_action )
You can’t perform that action at this time.
0 commit comments