From 5e9f4eea451a77ba3b93db3747841ed2bd969e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 30 Sep 2018 14:09:20 +0200 Subject: New upstream version 0.30.1 --- src/library/LastImportPage.vala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/library/LastImportPage.vala') diff --git a/src/library/LastImportPage.vala b/src/library/LastImportPage.vala index be30989..84f582e 100644 --- a/src/library/LastImportPage.vala +++ b/src/library/LastImportPage.vala @@ -35,6 +35,20 @@ public class LastImportPage : CollectionPage { // set up view manager for the last import roll on_import_rolls_altered(); } + + public LastImportPage.for_id(ImportID id) { + base(NAME); + + this.last_import_id = id; + + get_view().halt_all_monitoring(); + get_view().clear(); + + foreach (MediaSourceCollection col in MediaCollectionRegistry.get_instance().get_all()) { + get_view().monitor_source_collection(col, new LastImportViewManager(this, + last_import_id), last_import_alteration); + } + } ~LastImportPage() { foreach (MediaSourceCollection col in MediaCollectionRegistry.get_instance().get_all()) { -- cgit v1.2.3