Skip to content

Commit 39fbce8

Browse files
greatgitsbyclaude
andcommitted
esim: block delete while busy switching profiles
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 721b4b9 commit 39fbce8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • selfdrive/ui/mici/layouts/settings/network

selfdrive/ui/mici/layouts/settings/network/esim_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _show_delete_btn(self) -> bool:
196196
return not self._cellular_manager.is_comma_profile(self._profile.iccid)
197197

198198
def _on_delete(self):
199-
if self._deleting:
199+
if self._deleting or self._cellular_manager.busy:
200200
return
201201
self._deleting = True
202202
self._cellular_manager.delete_profile(self._profile.iccid)

0 commit comments

Comments
 (0)