[shotwell/shotwell-0.26] Fix import progress when importing RAW files
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/shotwell-0.26] Fix import progress when importing RAW files
- Date: Thu, 9 Nov 2017 11:56:44 +0000 (UTC)
commit 68b9564e4f3a7cecc769523433b5f2b51f3ce2d8
Author: Jens Georg <mail jensge org>
Date: Sun Aug 20 14:59:50 2017 +0200
Fix import progress when importing RAW files
src/BatchImport.vala | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/BatchImport.vala b/src/BatchImport.vala
index 27cf4da..8e4ae5c 100644
--- a/src/BatchImport.vala
+++ b/src/BatchImport.vala
@@ -1265,7 +1265,14 @@ public class BatchImport : Object {
ready_sources.add(completed_object);
imported(completed_object.source, user_preview, total);
- report_progress(completed_object.source.get_filesize());
+ // If we have a photo, use master size. For RAW import, we might end up with reporting
+ // the size of the (much smaller) JPEG which will look like no progress at all
+ if (completed_object.source is PhotoSource) {
+ var photo_source = completed_object.source as PhotoSource;
+ report_progress(photo_source.get_master_filesize());
+ } else {
+ report_progress(completed_object.source.get_filesize());
+ }
file_import_complete();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]