Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
fabsenet committed May 30, 2018
2 parents 697e22c + eda3223 commit 5d1dd9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions adrilight/Settings/UserSettingsManager.cs
Original file line number Diff line number Diff line change
@@ -42,9 +42,10 @@ public IUserSettings MigrateOrDefault()
{
var settings = new UserSettings();

var legacyFiles = Directory.GetFiles(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "adrilight")
, "user.config"
, SearchOption.AllDirectories);
var legacyPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "adrilight");
if (!Directory.Exists(legacyPath)) return settings;

var legacyFiles = Directory.GetFiles(legacyPath, "user.config", SearchOption.AllDirectories);

var file = legacyFiles
.Select(f => new FileInfo(f))

0 comments on commit 5d1dd9a

Please sign in to comment.