From 5abb2cbd8f201b8a8101a661f1dd9a68412d8674 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 26 Oct 2025 08:27:48 +0100 Subject: refactor ui, fix autocomplete bug --- src/ui/ui_settings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui/ui_settings.cpp') diff --git a/src/ui/ui_settings.cpp b/src/ui/ui_settings.cpp index 2a310d3..06409b7 100644 --- a/src/ui/ui_settings.cpp +++ b/src/ui/ui_settings.cpp @@ -325,6 +325,8 @@ static void draw_services() } } +void draw_contact_form_ex(contact* buffer, bool viewing_only, bool with_autocomplete, bool active_countries_only); + void ui::draw_settings() { if (ImGui::BeginTabBar("SettingsTabBar")) @@ -332,7 +334,7 @@ void ui::draw_settings() if (ImGui::BeginTabItem(locale::get("settings.table.company"), nullptr, select_company_tab == 1 ? ImGuiTabItemFlags_SetSelected : 0)) { select_company_tab = 0; - draw_contact_form(&company_info); + draw_contact_form_ex(&company_info, false, false, true); // Save button. bool can_save = administration::contact_is_valid(company_info) == A_ERR_SUCCESS; -- cgit v1.2.3-70-g09d2