[gnome-boxes/refactor-some-download-an-os-bits: 3/8] wizard-window: Don't repopulate the downloads list
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/refactor-some-download-an-os-bits: 3/8] wizard-window: Don't repopulate the downloads list
- Date: Sat, 3 Mar 2018 10:41:27 +0000 (UTC)
commit 84ce07cecf2906f25f2c4492a7ee72b2383c8d6e
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Feb 28 16:14:38 2018 +0100
wizard-window: Don't repopulate the downloads list
src/wizard-window.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/wizard-window.vala b/src/wizard-window.vala
index be48e244..4757e4e8 100644
--- a/src/wizard-window.vala
+++ b/src/wizard-window.vala
@@ -152,7 +152,8 @@ public void show_downloads_page (OSDatabase os_db, owned DownloadChosenFunc down
page = WizardWindowPage.DOWNLOADS;
topbar.downloads_search.grab_focus ();
- return_if_fail (downloads_list.get_children ().length () == 0);
+ if (downloads_list.get_children ().length () > 0)
+ return;
os_db.list_downloadable_oses.begin ((db, result) => {
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]