From 11059edccf0bc968d9d35ff4e84c8c47949ee8ff Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sat, 18 May 2024 19:17:16 +0800 Subject: [PATCH] [gnc-ofx-import.cpp] show message while deduplicating download --- gnucash/import-export/ofx/gnc-ofx-import.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnucash/import-export/ofx/gnc-ofx-import.cpp b/gnucash/import-export/ofx/gnc-ofx-import.cpp index 58e05034164..2e79fbf00a8 100644 --- a/gnucash/import-export/ofx/gnc-ofx-import.cpp +++ b/gnucash/import-export/ofx/gnc-ofx-import.cpp @@ -49,6 +49,7 @@ #include "gnc-glib-utils.h" #include "gnc-prefs.h" #include "gnc-ui.h" +#include "gnc-window.h" #include "dialog-account.h" #include "dialog-utils.h" #include "window-reconcile.h" @@ -1303,6 +1304,9 @@ runMatcher (ofx_info* info, char * selected_filename, gboolean go_to_next_file) * create duplicate entries. */ info->num_trans_processed = 0; + + gnc_window_show_progress (_("Removing duplicates transactions..."), 100); + // Add transactions, but verify that there isn't one that was // already added with identical amounts and date, and a different // account. To do that, create a hash table whose key is a hash of @@ -1347,6 +1351,8 @@ runMatcher (ofx_info* info, char * selected_filename, gboolean go_to_next_file) DEBUG("%d transactions remaining to process in file %s\n", g_list_length (info->trans_list), selected_filename); + gnc_window_show_progress (nullptr, -1); + // See whether the view has anything in it and warn the user if not. if (gnc_gen_trans_list_empty (info->gnc_ofx_importer_gui)) {