[gnome-boxes/downloads-hub-ux-improvements: 5/6] downloads-hub: Launch installation if there's only one image
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/downloads-hub-ux-improvements: 5/6] downloads-hub: Launch installation if there's only one image
- Date: Wed, 4 Dec 2019 11:59:03 +0000 (UTC)
commit 2091d344b9f10d117f151512b974f439cb4ce801
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Dec 4 12:50:05 2019 +0100
downloads-hub: Launch installation if there's only one image
There's no need to require the user to click the downloads hub row
if there's only one download at the moment.
If the user is doing multiple downloads simultaneously, they can
click on the downloads hub to select which installation to start.
src/downloads-hub.vala | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/downloads-hub.vala b/src/downloads-hub.vala
index 1cc0fa02..69aee9d6 100644
--- a/src/downloads-hub.vala
+++ b/src/downloads-hub.vala
@@ -82,6 +82,13 @@ private void on_download_complete (string label, string path) {
if (!ongoing_downloads) {
App.app.uninhibit ();
}
+
+ if (n_items == 1) {
+ var row = listbox.get_row_at_index (0) as DownloadsHubRow;
+
+ popdown ();
+ App.app.main_window.show_vm_assistant (row.local_file);
+ }
}
[GtkCallback]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]