mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
When the preference dialogue is loaded and options are set, the ones with registered callbacks fire causing parts of Gnucash to be updated. This was observed with gnc_split_register_load being executed 5 times for each open register when the preference dialogue was loaded. To overcome this, a couple of functions have been created to block and unblock all registered prefs and used while the preference dialogue is loaded.
After loading this module, you must also call (gnc:setup-gettext) (setlocale LC_ALL "") at some point to finish initializing the app. This is not done automatically from gncmod-app-utils.c via app-utils.scm because you may need to handle setlocale yourself (or you may already have other code that does).