[f-spot] Show first images early on.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Show first images early on.
- Date: Sat, 5 Jun 2010 20:55:02 +0000 (UTC)
commit 003d73f7022563b4fd3ecaab4b514a5a270483ae
Author: Ruben Vermeersch <ruben savanne be>
Date: Sat Jun 5 21:00:25 2010 +0200
Show first images early on.
src/Import/FileImportSource.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Import/FileImportSource.cs b/src/Import/FileImportSource.cs
index 3cb26b7..6551b72 100644
--- a/src/Import/FileImportSource.cs
+++ b/src/Import/FileImportSource.cs
@@ -57,7 +57,7 @@ namespace FSpot.Import
infos.Add (new FileImportInfo (new SafeUri(file.Uri, true)));
}
- if (infos.Count % 10 == 0) {
+ if (infos.Count % 10 == 0 || infos.Count < 10) {
var to_add = infos; // prevents race condition
ThreadAssist.ProxyToMain (() => controller.Photos.Add (to_add.ToArray ()));
infos = new List<FileImportInfo> ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]