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 <pwithnall@endlessos.org>

Fixes: #28
This commit is contained in:
Philip Withnall 2020-10-15 16:43:58 +01:00
parent 9d4639cf49
commit e1b5bcd324
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}