From e1b5bcd324c3306d36d4908ded79bc09f5fe2827 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 15 Oct 2020 16:43:58 +0100 Subject: [PATCH] libmalcontent-ui: Load the app list when constructing the apps selector Rather than waiting until an app filter is set on the application selector, load the app list immediately at construction time. This is now possible because it can be diffed easily when the app filter is set. Signed-off-by: Philip Withnall Fixes: #28 --- libmalcontent-ui/restrict-applications-selector.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libmalcontent-ui/restrict-applications-selector.c b/libmalcontent-ui/restrict-applications-selector.c index 15455bd..3955fe1 100644 --- a/libmalcontent-ui/restrict-applications-selector.c +++ b/libmalcontent-ui/restrict-applications-selector.c @@ -104,6 +104,9 @@ mct_restrict_applications_selector_constructed (GObject *obj) g_assert (self->app_filter != NULL); + /* Load the apps. */ + reload_apps (self); + G_OBJECT_CLASS (mct_restrict_applications_selector_parent_class)->constructed (obj); }