Skip to content

Commit fa19226

Browse files
committed
Fix config backup path
1 parent a73e005 commit fa19226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Desktop/Config/ModuleConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ private async Task LoadConfig()
7171
{
7272
_logger.LogCritical(e, "Error during deserialization/loading of config");
7373
_logger.LogWarning("Attempting to move old config and generate a new one");
74-
var configName = Path.GetFileName(_configPath);
75-
File.Move(configName, $"{configName}.old");
74+
var backupPath = _configPath + ".old";
75+
File.Move(_configPath, backupPath);
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)