From b97a2d82018efe4a65cc961ea962c30df88d47b0 Mon Sep 17 00:00:00 2001 From: Trey Moen <50057480+greatgitsby@users.noreply.github.com> Date: Wed, 9 Sep 2026 20:21:52 -0700 Subject: [PATCH] eSIM: require internet to delete a profile (#38838) * Guard eSIM profile deletion with internet connectivity check * Simplify eSIM delete connectivity guard --- .../selfdrive/ui/mici/layouts/settings/network/esim_ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openpilot/selfdrive/ui/mici/layouts/settings/network/esim_ui.py b/openpilot/selfdrive/ui/mici/layouts/settings/network/esim_ui.py index 9af7bcde88..b54edec427 100644 --- a/openpilot/selfdrive/ui/mici/layouts/settings/network/esim_ui.py +++ b/openpilot/selfdrive/ui/mici/layouts/settings/network/esim_ui.py @@ -219,6 +219,9 @@ class EsimProfileButton(BigButton): def _delete_profile(self): if not self._locked and not self._cellular_manager.busy and self._show_delete_btn: + if ui_state.sm["deviceState"].networkType == log.DeviceState.NetworkType.none: + gui_app.push_widget(BigDialog("", tr("Ensure you're connected to the internet and try again."))) + return self._cellular_manager.delete_profile(self._profile.iccid) def _on_nickname_entered(self, nickname: str):