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/countries.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/countries.cpp') diff --git a/src/countries.cpp b/src/countries.cpp index 4456284..337b10b 100644 --- a/src/countries.cpp +++ b/src/countries.cpp @@ -250,6 +250,14 @@ bool country::is_EU(char* country_code) return country_map[index].is_EU; } +bool country::is_enabled(char* country_code) +{ + s32 index = get_index_by_country_code(country_code); + if (index == -1) return 0; + + return country_map[index].enabled; +} + time_t country::get_default_invoice_expire_duration(char* country_code) { s32 index = get_index_by_country_code(country_code); -- cgit v1.2.3-70-g09d2