[chronojump] Continuation of last commit



commit 234df79d37826c0b7e63b209b109454ffd2b922d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 17 17:10:34 2019 +0200

    Continuation of last commit

 src/gui/preferences.cs | 2 +-
 src/util.cs            | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index a428508b..9c9cc45a 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -1593,7 +1593,7 @@ public class PreferencesWindow
                pulsebarBackupSecondDirs.Fraction = Util.DivideSafeFraction(uc.BackupSecondDirsCount, 
uc.BackupSecondDirsLength);
                pulsebarBackupSecondDirs.Text = uc.LastSecondDir;
 
-               Thread.Sleep (50);
+               Thread.Sleep (10);
                //LogB.Debug(thread.ThreadState.ToString());
                return true;
        }
diff --git a/src/util.cs b/src/util.cs
index 2ed69fa8..a2697a49 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -2238,18 +2238,20 @@ public class UtilCopy
                foreach (DirectoryInfo dir in diArray)
                        if(dir.ToString() != backupDir) //do not copy backup files
                        {
-                               CopyFilesRecursively(dir, target.CreateSubdirectory(dir.Name), level ++);
-
                                if(level == 0)
                                {
                                        BackupMainDirsCount ++;
                                        LastMainDir = Util.GetLastPartOfPath (dir.ToString());
                                        BackupSecondDirsCount = 0;
+                                       LogB.Information("at level 0: " + dir);
                                } else if(level == 1) {
                                        BackupSecondDirsLength = diArray.Length;
                                        BackupSecondDirsCount ++;
                                        LastSecondDir = Util.GetLastPartOfPath (dir.ToString());
+                                       LogB.Information("at level 1: " + dir);
                                }
+                               CopyFilesRecursively(dir, target.CreateSubdirectory(dir.Name), level +1);
+
                        }
                foreach (FileInfo file in source.GetFiles())
                        file.CopyTo(Path.Combine(target.FullName, file.Name));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]