def auto_save(self):
main_window = self.get_main_window()
if not main_window:
return
if not main_window.get_configuration().get('autosave'):
return
if main_window.file:
main_window.save_file()
logging.info(_('Auto save'))
else:
logging.warning(_('No file to auto save'))
评论列表
文章目录