From 93b88af0c1821228a116d1da107827795472a0d6 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 15 Oct 2020 16:44:55 +0100 Subject: [PATCH] libmalcontent-ui: Reload the app list when it changes on the system This will no longer destroy in-progress user input. Signed-off-by: Philip Withnall Fixes: #18 --- libmalcontent-ui/restrict-applications-selector.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libmalcontent-ui/restrict-applications-selector.c b/libmalcontent-ui/restrict-applications-selector.c index 3955fe1..b595793 100644 --- a/libmalcontent-ui/restrict-applications-selector.c +++ b/libmalcontent-ui/restrict-applications-selector.c @@ -586,14 +586,9 @@ static void app_info_changed_cb (GAppInfoMonitor *monitor, gpointer user_data) { - /* FIXME: We should update the list of apps here, but we can’t call - * reload_apps() because that will dump and reload the entire list, losing - * any changes the user has already made to the set of switches. We need - * something more fine-grained. MctRestrictApplicationsSelector *self = MCT_RESTRICT_APPLICATIONS_SELECTOR (user_data); reload_apps (self); - */ } /* Will return %NULL if @flatpak_id is not installed. */