diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-11 20:09:37 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-11 20:09:37 +0100 |
| commit | 74748ae725ca3cdcc450473ea0ccd245ab36533d (patch) | |
| tree | 4cf69b3d2cb99219651c38683d1c1c6cddbcc7a4 /src/ui/ui_invoices.cpp | |
| parent | c011cfe0cb4b2b29c2e1d48b5bfd6db1d7fdc6d8 (diff) | |
ai import ui improvements
Diffstat (limited to 'src/ui/ui_invoices.cpp')
| -rw-r--r-- | src/ui/ui_invoices.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ui/ui_invoices.cpp b/src/ui/ui_invoices.cpp index ffdfb9b..e7872d1 100644 --- a/src/ui/ui_invoices.cpp +++ b/src/ui/ui_invoices.cpp @@ -49,11 +49,13 @@ static void _set_active_invoice(invoice inv) void ui::destroy_invoices() { - memops::unalloc(invoice_items_buffer); - memops::unalloc(activity_buffer); + // Currently causes crash because of multithreaded imports. + // Main thread needs to be locked. + //memops::unalloc(invoice_items_buffer); + //memops::unalloc(activity_buffer); - invoice_items_buffer = 0; - activity_buffer = 0; + //invoice_items_buffer = 0; + //activity_buffer = 0; } void ui::setup_invoices() @@ -497,6 +499,9 @@ static void draw_send_options() _reload_activities(); } + else { + // @TODO show failure reason + } }); } // if (ImGui::Selectable(locale::get("ui.sendAs.einvoice"), false)) { |
