File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,13 @@ def load_macro(self, event=None):
88
88
self .main_app .macro_recorded = True
89
89
self .main_app .macro_saved = True
90
90
self .main_app .current_file = macroFile .name
91
- if not self .main_app .settings .settings_dict ["Loading" ]["Always_import_macro_settings" ]:
92
- if messagebox .askyesno ("PyMacroRecord" , self .config_text ["global" ]["load_macro_settings" ]):
93
- macro_settings = self .main_app .macro .macro_events ["settings" ]
94
- self .main_app .settings .settings_dict ["Playback" ] = macro_settings ["Playback" ]
95
- self .main_app .settings .settings_dict ["Minimization" ] = macro_settings ["Minimization" ]
96
- self .main_app .settings .settings_dict ["After_Playback" ] = macro_settings ["After_Playback" ]
91
+ if "settings" in self .main_app .macro .macro_events :
92
+ if not self .main_app .settings .settings_dict ["Loading" ]["Always_import_macro_settings" ]:
93
+ if messagebox .askyesno ("PyMacroRecord" , self .config_text ["global" ]["load_macro_settings" ]):
94
+ macro_settings = self .main_app .macro .macro_events ["settings" ]
95
+ self .main_app .settings .settings_dict ["Playback" ] = macro_settings ["Playback" ]
96
+ self .main_app .settings .settings_dict ["Minimization" ] = macro_settings ["Minimization" ]
97
+ self .main_app .settings .settings_dict ["After_Playback" ] = macro_settings ["After_Playback" ]
97
98
self .main_app .prevent_record = False
98
99
99
100
You can’t perform that action at this time.
0 commit comments