mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 796915 - Update Account colour background
The account tree view background colour does not update straight away with the preference option so add gnc_tree_view_account_refilter to the colour change call back to force a refresh.
This commit is contained in:
parent
539a27b5ff
commit
dfdafc7185
@ -657,6 +657,9 @@ gnc_tree_view_account_color_update (gpointer gsettings, gchar *key, gpointer use
|
|||||||
priv = GNC_TREE_VIEW_ACCOUNT_GET_PRIVATE(view);
|
priv = GNC_TREE_VIEW_ACCOUNT_GET_PRIVATE(view);
|
||||||
if (g_strcmp0 (key, GNC_PREF_ACCOUNT_COLOR) == 0)
|
if (g_strcmp0 (key, GNC_PREF_ACCOUNT_COLOR) == 0)
|
||||||
priv->show_account_color = gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, key);
|
priv->show_account_color = gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, key);
|
||||||
|
|
||||||
|
// do a refilter so the tree view background color gets updated
|
||||||
|
gnc_tree_view_account_refilter (view);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Add the account color background data function to the GncTreeViewAccount column to
|
/** Add the account color background data function to the GncTreeViewAccount column to
|
||||||
|
Loading…
Reference in New Issue
Block a user