def _button_autosave_clicked(self, checked):
if checked:<EOL><INDENT>path = _spinmob.dialogs.save(filters=self.file_type)<EOL>if not path:<EOL><INDENT>self.button_autosave.set_checked(False)<EOL>return<EOL><DEDENT>self._autosave_directory, filename = _os.path.split(path)<EOL>self._label_path.set_text(filename)<EOL><DEDENT>self.save_gui_settings()<EOL>
Called whenever the button is clicked.