[gnome-software/1064-gs-search-page-execute-load-when-there-s-an-application-to-be-shown] gs-search-page: Execute load when there's an application to be shown
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1064-gs-search-page-execute-load-when-there-s-an-application-to-be-shown] gs-search-page: Execute load when there's an application to be shown
- Date: Tue, 22 Sep 2020 13:26:59 +0000 (UTC)
commit 744366d4057b7df15e5ef7f4a05bcfcc22f7f196
Author: Milan Crha <mcrha redhat com>
Date: Tue Sep 22 15:26:12 2020 +0200
gs-search-page: Execute load when there's an application to be shown
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1064
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/515
src/gs-search-page.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-search-page.c b/src/gs-search-page.c
index 8b7b6c19..bf7ba5c2 100644
--- a/src/gs-search-page.c
+++ b/src/gs-search-page.c
@@ -315,10 +315,13 @@ gs_search_page_get_text (GsSearchPage *self)
void
gs_search_page_set_text (GsSearchPage *self, const gchar *value)
{
- if (value == self->value)
- return;
- if (g_strcmp0 (value, self->value) == 0)
+ if (value == self->value ||
+ g_strcmp0 (value, self->value) == 0) {
+ /* Force search reload when there's an application to be shown */
+ if (self->appid_to_show)
+ gs_search_page_load (self);
return;
+ }
g_free (self->value);
self->value = g_strdup (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]