public void SaveSettings() { if (LastKnownProjectPaths != null) { m_Serializer.SaveObject(FilePath, LastKnownProjectPaths.ToArray()); } }
public void RestoreAndRemovePathsOfDeletedProjects() { RestoreSettings(); foreach (var path in LastKnownProjectPaths.ToArray()) { if (!IsPathAProject(path)) { LastKnownProjectPaths.Remove(path); } } SaveSettings(); }