Skip to content

Commit

Permalink
Correct exporting settings file
Browse files Browse the repository at this point in the history
Previously was exporting to %appdata%\Rubberduck\ and overwriting
rubberduck.config. Now exports to chosen directory and uses chosen filename.
  • Loading branch information
IvenBach committed May 21, 2019
1 parent fe40b46 commit e7c3953
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -61,9 +61,9 @@ public override void Save(T toSerialize, string nonDefaultFilePath = null)
}
}

EnsurePathExists();
EnsurePathExists(filePath);

using (var xml = XmlWriter.Create(FilePath, OutputXmlSettings))
using (var xml = XmlWriter.Create(filePath, OutputXmlSettings))
{
doc.WriteTo(xml);
Cached = toSerialize;
Expand Down

0 comments on commit e7c3953

Please sign in to comment.