[gnome-software/1486-gs-repos-dialog-call-refresh-on-repository-setup-change] gs-application: Invoke page reload after the refresh is finished
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1486-gs-repos-dialog-call-refresh-on-repository-setup-change] gs-application: Invoke page reload after the refresh is finished
- Date: Wed, 6 Oct 2021 12:45:37 +0000 (UTC)
commit 4c6f4f20c904600a3c5d8ea446ed3c3b0ef0808d
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 6 14:41:55 2021 +0200
gs-application: Invoke page reload after the refresh is finished
The refresh can cause new applications or alternative sources being
found in the newly enabled repositories, thus reload the pages, to
reflect the current state.
src/gs-application.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index df982df19..6ecc093f1 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -1384,6 +1384,9 @@ gs_application_refresh_cb (GsPluginLoader *plugin_loader,
if (!success &&
!g_error_matches (error, GS_PLUGIN_ERROR, GS_PLUGIN_ERROR_CANCELLED))
g_warning ("failed to refresh: %s", error->message);
+
+ if (success)
+ g_signal_emit_by_name (self->plugin_loader, "reload", 0, NULL);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]