in scripts/toggle_auto_launch_for_users.py [0:0]
def toggle_user_auto_launch_config(self) -> None:
should_update_all_users = self.check_whether_to_update_all_users()
if (not should_update_all_users) and (len(self.users) < 1):
print("No config to update.")
return
configs : List[AutoLaunchConfig] = self.get_auto_launch_configuration(studio_id=self.studio)
for config in configs:
if should_update_all_users or (config.user_id in self.users):
self.update_auto_launch_config_enabled_status(self.enabled, config)