summaryrefslogtreecommitdiff
path: root/src/ui/ui_settings.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-26 08:27:48 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-26 08:27:48 +0100
commit5abb2cbd8f201b8a8101a661f1dd9a68412d8674 (patch)
treed11d1483100ed89eabf37efaaf3fae16df3cc4e6 /src/ui/ui_settings.cpp
parent8df1486ca41edb625feb269fe7f7997fa5ffacfe (diff)
refactor ui, fix autocomplete bug
Diffstat (limited to 'src/ui/ui_settings.cpp')
-rw-r--r--src/ui/ui_settings.cpp4
1 files changed, 3 insertions, 1 deletions
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;