mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use the gnc_prefs_get_bool values to update cache values
This way is a safer way to update the cache values in case the settings changed signal fails to trigger or there is a double trigger and the cached value gets out of sync with the preference value.
This commit is contained in:
parent
128fce3ed8
commit
cd30578b2f
@ -2693,11 +2693,13 @@ split_register_pref_changed (gpointer prefs, gchar *pref, gpointer user_data)
|
||||
}
|
||||
else if (g_str_has_suffix(pref, GNC_PREF_SHOW_LEAF_ACCT_NAMES))
|
||||
{
|
||||
reg->show_leaf_accounts = !reg->show_leaf_accounts;
|
||||
reg->show_leaf_accounts = gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL_REGISTER,
|
||||
GNC_PREF_SHOW_LEAF_ACCT_NAMES);
|
||||
}
|
||||
else if (g_str_has_suffix(pref, GNC_PREF_ALT_COLOR_BY_TRANS))
|
||||
{
|
||||
reg->double_alt_color = !reg->double_alt_color;
|
||||
reg->double_alt_color = gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL_REGISTER,
|
||||
GNC_PREF_ALT_COLOR_BY_TRANS);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user