def auto_save_geom(self, save: bool = True, with_notification: bool = False) -> None: """ Set geometry autosave option with optional notification. Args: save(bool): predicate that shows that want to enable/disable autosave mode. with_notification(bool): to create notify-osd-based notification or not. """ self.geom_auto_save = save if with_notification: Misc.notify_msg(f"geometry autosave={save}")