[gnome-boxes/downloads-hub-ux-improvements: 6/6] downloads-hub: Delete row from the list once user has acted on it
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/downloads-hub-ux-improvements: 6/6] downloads-hub: Delete row from the list once user has acted on it
- Date: Wed, 4 Dec 2019 11:59:08 +0000 (UTC)
commit b3d4d069ba91c886f91fcea1feef2d4b030225e5
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Dec 4 12:55:39 2019 +0100
downloads-hub: Delete row from the list once user has acted on it
Once the user has clicked on a complete download, we don't need to
keep the row in there.
If the user decides to start another installation from the same
image, they can find the image in the first page of the Assistant,
in the "Detected Sources" section.
Fixes #306
src/downloads-hub.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/downloads-hub.vala b/src/downloads-hub.vala
index 69aee9d6..eb202bc0 100644
--- a/src/downloads-hub.vala
+++ b/src/downloads-hub.vala
@@ -88,6 +88,8 @@ private void on_download_complete (string label, string path) {
popdown ();
App.app.main_window.show_vm_assistant (row.local_file);
+
+ row.destroy ();
}
}
@@ -99,6 +101,8 @@ private void on_row_activated (Gtk.ListBoxRow _row) {
if (row.local_file != null) {
App.app.main_window.show_vm_assistant (row.local_file);
}
+
+ row.destroy ();
}
private bool draw_button_pie (Widget drawing_area, Cairo.Context context) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]