private IList <FileChangeMetaData> GetSortedSavedChanges()
        {
            List <FileChangeMetaData> changes;

            lock (data)
            {
                changes = new List <FileChangeMetaData>(data.DomesticChanges);

                foreach (var alienChangesKVP in data.AlienChanges)
                {
                    changes.AddRange(alienChangesKVP.Value);
                }
            }

            SyncData.Sort(changes);
            return(changes);
        }
        private void LoadSavedData()
        {
            if (data != null)
            {
                data = null;
            }

            try
            {
                string json = File.ReadAllText(SavePath);
                data = JsonConvert.DeserializeObject <SyncData>(json);
                UpdateLastChangesFromData();
            }
            catch (Exception)
            {
                OnLog?.Invoke(this, new OnLogHandlerArgs("Loading default data as save file could not be read", LogReason.USER_INFO));
                data = new SyncData();
                LastKnownChangeTime = new Dictionary <string, DateTime>();
            }
        }