summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-08-24 17:48:55 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-08-24 17:50:24 -0300
commitc4ab0b3dfe30e7cc4183cbfff2cf60402a274b6b (patch)
tree297dd905484a0847a894c61f77b34661b4131d27
parentc3c577f0c91e1e1285435031b718e5107e95a9bc (diff)
downloadglade-c4ab0b3dfe30e7cc4183cbfff2cf60402a274b6b.tar.gz
GladePreferences: reload all catalogs when adding a new extra path.
Reload all catalogs to make sure templates in the newlly added path are loaded without having to restart the app.
-rw-r--r--src/glade-preferences.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glade-preferences.c b/src/glade-preferences.c
index a4de6bf7..48ec6d9e 100644
--- a/src/glade-preferences.c
+++ b/src/glade-preferences.c
@@ -256,6 +256,9 @@ on_add_catalog_button_clicked (GtkButton *button, GladePreferences *preferences)
glade_catalog_add_path (canonical);
+ /* Force user templates reload */
+ glade_catalog_load_all ();
+
gtk_list_store_append (GTK_LIST_STORE (priv->catalog_path_store), &iter);
gtk_list_store_set (GTK_LIST_STORE (priv->catalog_path_store), &iter,
COLUMN_PATH, display,