use this ```python if getattr(self, "service_was_running", False): self.sm.settings_screen.set_service_status(ServiceStatus.RUNNING) ``` with this ```python if service.is_running(): ui_port = get_stored_running_ui_server_port() ```
use this
with this