summaryrefslogtreecommitdiff
path: root/src/library/LastImportPage.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-30 14:11:00 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-30 14:11:00 +0200
commit0ac947a9070322180e94d1b71e30836cce4d74bc (patch)
tree4a6f3923c250377536a5004ed203768111a1d27f /src/library/LastImportPage.vala
parenteca5837e235a356c8db9416bbbc13577db3e6f76 (diff)
parent01b2b5ec9177046f64c6d0a6e73a6ac8a42089a1 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/library/LastImportPage.vala')
-rw-r--r--src/library/LastImportPage.vala14
1 files changed, 14 insertions, 0 deletions
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()) {