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 31
31
read_modal_fit_data , ModalTest )
32
32
from . import doc
33
33
34
- __version__ = "0.14.1 "
34
+ __version__ = "0.14.2 "
35
35
36
36
# Pull things in for easier access
37
37
SdynpyArray = array .SdynpyArray
Original file line number Diff line number Diff line change @@ -1055,7 +1055,9 @@ def add_menu_bar(self) -> None:
1055
1055
super ().add_menu_bar ()
1056
1056
1057
1057
# 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 ]
1059
1061
self .save_animation_action = pvqt .plotting .QAction ('Save Animation' )
1060
1062
self .save_animation_action .triggered .connect (self .save_animation_from_action )
1061
1063
file_menu .insertAction (file_menu .actions ()[1 ], self .save_animation_action )
You can’t perform that action at this time.
0 commit comments