diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-27 10:04:33 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-27 10:04:33 +0200 |
| commit | 94636b871f0272b518dbb38ce0eb75f9e18bea8b (patch) | |
| tree | 11810f1f009366cc7d3a203f0d981a3cf9b3d346 /src/ui | |
| parent | 58edcf619ee9d589dd7b54b8a9cbd4271740c13b (diff) | |
refactor
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/ui_contacts.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/ui/ui_contacts.cpp b/src/ui/ui_contacts.cpp index fc03e84..ffed39a 100644 --- a/src/ui/ui_contacts.cpp +++ b/src/ui/ui_contacts.cpp @@ -178,13 +178,10 @@ static void draw_contact_list() } ImGui::SameLine(); - if (administration_contact_can_be_deleted(c)) - { - snprintf(btn_name, sizeof(btn_name), "%s##%d", localize("form.delete"), i); - if (ImGui::Button(btn_name)) { - selected_for_removal = c; - ImGui::OpenPopup("ConfirmDeletePopup"); - } + snprintf(btn_name, sizeof(btn_name), "%s##%d", localize("form.delete"), i); + if (ImGui::Button(btn_name)) { + selected_for_removal = c; + ImGui::OpenPopup("ConfirmDeletePopup"); } } |
