mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Call gnc_{suspend|resume}_gui_refresh while closing accounts and scrubbing lots
to make them go much faster and avoid flicker. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18519 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
889f4d19ac
commit
10cead26b1
@ -302,8 +302,10 @@ gnc_book_close_response_cb(GtkDialog *dialog, gint response, GtkDialog *unused)
|
||||
break;
|
||||
}
|
||||
|
||||
gnc_suspend_gui_refresh();
|
||||
close_accounts_of_type(cbw, income_acct, ACCT_TYPE_INCOME);
|
||||
close_accounts_of_type(cbw, expense_acct, ACCT_TYPE_EXPENSE);
|
||||
gnc_resume_gui_refresh();
|
||||
|
||||
/* FALLTHROUGH */
|
||||
default:
|
||||
|
@ -579,7 +579,9 @@ lv_response_cb (GtkDialog *dialog, gint response, gpointer data)
|
||||
break;
|
||||
|
||||
case RESPONSE_SCRUB_ACCOUNT:
|
||||
gnc_suspend_gui_refresh ();
|
||||
xaccAccountScrubLots (lv->account);
|
||||
gnc_resume_gui_refresh ();
|
||||
gnc_lot_viewer_fill (lv);
|
||||
lv_show_splits (lv);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user