[gnome-software/uajain/ui-fixes: 4/4] details-page: Refresh the details page if GsApp's quirks are changed
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/uajain/ui-fixes: 4/4] details-page: Refresh the details page if GsApp's quirks are changed
- Date: Wed, 31 Jul 2019 13:19:23 +0000 (UTC)
commit f083f95d78a9e26ad1ce775014b94a0adc19417c
Author: Umang Jain <umang endlessm com>
Date: Wed Jul 31 17:50:43 2019 +0530
details-page: Refresh the details page if GsApp's quirks are changed
Quirks like GS_APP_QUIRK_HAS_SHORTCUT drive the display of Add/Remove
shortcut buttons on the app's details page. Hence, if GsApp's quirks
are changed, trigger the logic to refresh the page.
https://phabricator.endlessm.com/T27332
src/gs-details-page.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index b80a4438..b733ffda 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -1696,6 +1696,9 @@ _set_app (GsDetailsPage *self, GsApp *app)
g_signal_connect_object (self->app, "notify::license",
G_CALLBACK (gs_details_page_notify_state_changed_cb),
self, 0);
+ g_signal_connect_object (self->app, "notify::quirk",
+ G_CALLBACK (gs_details_page_notify_state_changed_cb),
+ self, 0);
g_signal_connect_object (self->app, "notify::progress",
G_CALLBACK (gs_details_page_progress_changed_cb),
self, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]