[gnome-boxes/load-remote-downloads-at-assistant-index-page] assistant: Load remote "Featured Downloads" in assistant's index page
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/load-remote-downloads-at-assistant-index-page] assistant: Load remote "Featured Downloads" in assistant's index page
- Date: Mon, 5 Sep 2022 13:14:49 +0000 (UTC)
commit 08d7b899b57ccc82b2e6780233fd58e0d0b840b3
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Sep 5 15:13:51 2022 +0200
assistant: Load remote "Featured Downloads" in assistant's index page
We were only loading them in the Download an OS page, but we also
show "Featured Downloads" at the main page of the VM creation assistant.
Fixes #845
src/assistant/index-page.vala | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/assistant/index-page.vala b/src/assistant/index-page.vala
index 43674f4c..64942160 100644
--- a/src/assistant/index-page.vala
+++ b/src/assistant/index-page.vala
@@ -100,7 +100,11 @@ private async void populate_recommended_downloads_list () {
downloads_model.remove_all ();
medias_stack.set_visible_child (downloadable_sources_section);
- foreach (var media in yield get_recommended_downloads ()) {
+ var os_list = yield fetch_recommended_downloads_from_net ();
+ if (os_list == null)
+ os_list = yield get_recommended_downloads ();
+
+ foreach (var media in os_list) {
if (media != null) {
downloads_model.append (media);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]