[glade] GladePreferences: reload all catalogs when adding a new extra path.



commit c4ab0b3dfe30e7cc4183cbfff2cf60402a274b6b
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Mon Aug 24 17:48:55 2020 -0300

    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.

 src/glade-preferences.c | 3 +++
 1 file changed, 3 insertions(+)
---
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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]